With the new typewriter update, new rules and flags come. One of these flags is a flag noImplicitAny. This ensures that you do not initialize the variable as follows:
let avatars = [];
You can either change your own tsconfig.jsonso that you no longer mark this as an error using:
{
noImplicitAny: false
}
or you can create an interface / class that represents your selectedContact
export interface Contact {
jcf: ContactDetail;
meta: any[];
}
And one more interface:
export interface ContactDetail {
avatars: any[];
fullname: string;
}
Contact selectedContact:
private selectedContact: Contact = {...};
, , any[]:
let avatars: any[] = [];