I just started learning coding and I just couldn't understand how to fix this.
This is the error:
'items' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
export class Model
{
user;
items;
constructor()
{
this.user = "User";
this.items = [
new TodoItems("Sports", false),
new TodoItems("Breakfast", false),
new TodoItems("Reading Books", false),
new TodoItems("Cinema", false),
];
}
}