-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels