ember-octane-blueprint
ember-octane-blueprint copied to clipboard
TS2677: A type predicate's type must be assignable to its parameter's type
Hi, i have installed last version of blueprint in an app i have written in typescript and i am getting these 2 errors:
node_modules/@glimmer/runtime/dist/types/lib/component/curried-component.d.ts:6:87 - error TS2677: A type predicate's type must be assignable to its parameter's type.
Type 'CurriedComponentDefinition' is not assignable to type 'Maybe<Dict<unknown>>'.
Type 'CurriedComponentDefinition' is not assignable to type 'Dict<unknown>'.
Index signature is missing in type 'CurriedComponentDefinition'.
6 export declare function isComponentDefinition(definition: Maybe<Dict>): definition is CurriedComponentDefinition;
~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@glimmer/util/dist/types/lib/destroy.d.ts:3:69 - error TS2677: A type predicate's type must be assignable to its parameter's type.
Type 'SymbolDestroyable' is not assignable to type 'Maybe<Dict<unknown>>'.
Type 'SymbolDestroyable' is not assignable to type 'Dict<unknown>'.
Index signature is missing in type 'SymbolDestroyable'.
3 export declare function isDestroyable(value: Maybe<Dict>): value is SymbolDestroyable;
everything works fine however, just letting you know
closing this since there is a duplicate on https://github.com/typed-ember/ember-cli-typescript/issues/737