You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting an error with angular2-hotkeys before I'm even starting using it:
Error: node_modules/angular2-hotkeys/lib/hotkeys-cheatsheet/hotkeys-cheatsheet.component.d.ts:17:101 - error TS2344: Type '{ title: { alias: "title"; required: false; }; }' does not satisfy the constraint '{ [key: string]: string; }'.
Property '"title"' is incompatible with index signature.
Type '{ alias: "title"; required: false; }' is not assignable to type 'string'.
17 static ɵcmp: i0.ɵɵComponentDeclaration<HotkeysCheatsheetComponent, "hotkeys-cheatsheet", never, { "title": { "alias": "title"; "required": false; }; }, {}, never, never, false, never>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/angular2-hotkeys/lib/hotkeys.directive.d.ts:18:82 - error TS2344: Type '{ hotkeys: { alias: "hotkeys"; required: false; }; }' does not satisfy the constraint '{ [key: string]: string; }'.
Property '"hotkeys"' is incompatible with index signature.
Type '{ alias: "hotkeys"; required: false; }' is not assignable to type 'string'.
18 static ɵdir: i0.ɵɵDirectiveDeclaration<HotkeysDirective, "[hotkeys]", never, { "hotkeys": { "alias": "hotkeys"; "required": false; }; }, {}, never, never, false, never>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I haven't been able to figure out if it's some typescript setting being more strict in my project vs the library - but I'm at least able to continue by using 'skipLibCheck' in my tsconfig. I'd just rather not have it do that :)
Any hints?
The text was updated successfully, but these errors were encountered:
I'm getting an error with angular2-hotkeys before I'm even starting using it:
I haven't been able to figure out if it's some typescript setting being more strict in my project vs the library - but I'm at least able to continue by using 'skipLibCheck' in my tsconfig. I'd just rather not have it do that :)
Any hints?
The text was updated successfully, but these errors were encountered: