kamilkisiela / apollo-angular

A fully-featured, production ready caching GraphQL client for Angular and every GraphQL server 🎁
https://apollo-angular.com
MIT License
1.5k stars 311 forks source link

Type useInitialLoading #1717

Closed RobinKamps closed 1 month ago

RobinKamps commented 3 years ago

Describe the bug

compilation fails with type issue:

export interface WatchQueryOptionsAlone<TVariables, TData> extends Omit<WatchQueryOptions<TVariables, TData>, 'query' | 'variables'>{
}

in node_modules/apollo-angular/types.d.ts

Environment:

+-- @angular/cli@12.2.5
+-- @angular/core@12.2.5
+-- @apollo/client@3.4.15
+-- apollo-angular@2.6.0
+-- graphql@15.6.0
`-- typescript@4.3.5

Additional context

a quick changing the interface declaration fixes the compile issue, but i´ve not checked if WatchQueryOptionsAlone is still working correctly - not using watchQueries here...

export interface WatchQueryOptionsAlone<TVariables, TData> extends Omit<WatchQueryOptions<TVariables, TData>, 'useInitialLoading'> {
}