0
Q:

No index signature with a parameter of type 'string' was found on type

//YOU HAVE TO SPECIFY THE TYPE OF THE KEY WHEN YOU WANT TO USE THE OBJECT
// BRACKET SELECTION
// ONE WAY TO DO IT:

interface CustomType {
  [key: string]: any;
  
  key1: string;
  key2: number;
  //...
}
0

New to Communities?

Join the community