Skip to content

Commit

Permalink
Fixed type definition for subscribe (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
intellix authored and kamilkisiela committed Sep 3, 2019
1 parent b2f8dfd commit 2594eb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/apollo-angular/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

### vNext

- Fixed type definition for subscribe [PR #1290](https://github.com/apollographql/apollo-angular/pull/1290)

### v1.6.0

- Angular 8 [PR #1206](https://github.com/apollographql/apollo-angular/pull/1206)
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-angular/src/Apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class ApolloBase<TCacheShape = any> {
public subscribe<T, V = R>(
options: SubscriptionOptions<V>,
extra?: ExtraSubscriptionOptions,
): Observable<any> {
): Observable<FetchResult<T>> {
const obs = from(fixObservable(this.client.subscribe<T, V>({...options})));

return extra && extra.useZone !== true
Expand Down

0 comments on commit 2594eb4

Please sign in to comment.