Answers for "element implicitely has an any type because expression of type string can't be used to index type object"

2

Element implicitly has an 'any' type because expression of type 'string' can't be used to index type

interface IObjectKeys {
  [key: string]: string | number;
}

interface IDevice extends IObjectKeys {
  id: number;
  room_id: number;
  name: string;
  type: string;
  description: string;
}
Posted by: Guest on November-08-2021
0

Element implicitly has an 'any' type because expression of type 'string' can't be used to index type

tsconfig.json

 "compilerOptions": {
   	...
    "noImplicitReturns": true,
    "noImplicitAny": false,
    ...
 }
Posted by: Guest on November-09-2021

Code answers related to "element implicitely has an any type because expression of type string can't be used to index type object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language