Graphql-code-generator: Subscription is not generic

Created on 9 Sep 2018  路  4Comments  路  Source: dotansimha/graphql-code-generator

Older typescript versions can't handle a subscription with generics. Angular 6 does not seem to be compatible with typescript > 3.0 just yet (coming with Angular 7). Is it possible to add a flag to generate a Subscription without generics for older typescript versions?

Most helpful comment

@kamilkisiela that did solve the problem :) thanks a billion

All 4 comments

@timvandesteeg try out v1.3.0. It was a bug with apollo-angular, not TypeScript. Subscription class had no generic types, now it has. There is no breaking change so update should require only bumping the version number.

@timvandesteeg please try the solution @kamilkisiela suggested.
If that's still relevant, please re-open and issue.

@kamilkisiela that did solve the problem :) thanks a billion

@timvandesteeg super nice!

Was this page helpful?
0 / 5 - 0 ratings