Answers for "lement implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ 1: element; 2: element; 3: element; 4: element; }'"

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 "lement implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ 1: element; 2: element; 3: element; 4: element; }'"

Code answers related to "Javascript"

Browse Popular Code Answers by Language