ember-cli / ember-octane-blueprint

App and Addon blueprints for Ember Octane
MIT License
46 stars 23 forks source link

TS2677: A type predicate's type must be assignable to its parameter's type #139

Closed csylaios closed 5 years ago

csylaios commented 5 years ago

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

csylaios commented 5 years ago

closing this since there is a duplicate on https://github.com/typed-ember/ember-cli-typescript/issues/737