Typescript is complaining because of the following type in the library;
`export declare type IDTypeDictionary = {
} | {
[ id: number]: boolean;
};`
const fld: IDTypeDictionary = {};
fld[2] = false; // error TS7017: Element implicitly has an 'any' type because type 'IDTypeDictionary' has no index signature.
Suggested fix:
Add number type indexer:
export declare type IDTypeDictionary = { };
Or alternatively use an interface:
export declare interface IDTypeDictionary { }
Typescript is complaining because of the following type in the library; `export declare type IDTypeDictionary = {
};`
const fld: IDTypeDictionary = {}; fld[2] = false; // error TS7017: Element implicitly has an 'any' type because type 'IDTypeDictionary' has no index signature.
Suggested fix:
export declare type IDTypeDictionary = { };
export declare interface IDTypeDictionary { }