josemarluedke / glimmer-apollo

Ember and Glimmer integration for Apollo Client.
https://glimmer-apollo.com
MIT License
38 stars 14 forks source link

Incompatible with TS 4.8: Generic types are not sufficiently constrained for newer TS versions #76

Closed NullVoxPopuli closed 1 year ago

NullVoxPopuli commented 1 year ago

I was upgrading a project using glimmer-apollo to TS 4.8, from 4.5, and got this error;

../../../../node_modules/glimmer-apollo/dist/index.d.ts:50:74 - error TS2344: Type 'TVariables' does not satisfy the constraint 'OperationVariables'.

50 interface QueryOptions<TData, TVariables> extends Omit<WatchQueryOptions<TVariables>, "query"> {
                                                                            ~~~~~~~~~~

  ../../../../node_modules/glimmer-apollo/dist/index.d.ts:50:31
    50 interface QueryOptions<TData, TVariables> extends Omit<WatchQueryOptions<TVariables>, "query"> {
                                     ~~~~~~~~~~
    This type parameter might need an `extends OperationVariables` constraint.

Found 1 error.