Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
chore(types)
Browse files Browse the repository at this point in the history
new version of typescript and iterall don't play nice with this code
  • Loading branch information
yaacovCR committed Jan 6, 2020
1 parent 28388f3 commit b4d0390
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
"apollo-link-http-common": "^0.2.15",
"apollo-utilities": "^1.3.3",
"deprecated-decorator": "^0.1.6",
"extract-files": "^6.0.0",
"extract-files": "^7.0.0",
"form-data": "^3.0.0",
"iterall": "^1.2.2",
"iterall": "^1.3.0",
"node-fetch": "^2.6.0",
"uuid": "^3.3.3"
},
Expand All @@ -70,7 +70,7 @@
"@types/extract-files": "^3.1.0",
"@types/graphql-upload": "^8.0.3",
"@types/mocha": "^5.2.7",
"@types/node": "^12.12.21",
"@types/node": "^13.1.4",
"@types/node-fetch": "^2.5.4",
"@types/supertest": "^2.0.8",
"@types/uuid": "^3.4.6",
Expand All @@ -85,14 +85,14 @@
"graphql-type-json": "^0.3.1",
"graphql-upload": "^9.0.0",
"istanbul": "^0.4.5",
"mocha": "^6.2.2",
"mocha": "^7.0.0",
"prettier": "^1.19.1",
"remap-istanbul": "0.13.0",
"rimraf": "^3.0.0",
"source-map-support": "^0.5.16",
"standard-version": "^7.0.1",
"tslint": "^5.20.1",
"typescript": "3.7.3",
"typescript": "3.7.4",
"zen-observable-ts": "^0.8.20"
}
}
4 changes: 3 additions & 1 deletion src/stitching/observableToAsyncIterable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { Observable } from 'apollo-link';
import { $$asyncIterator } from 'iterall';
type Callback = (value?: any) => any;

export function observableToAsyncIterable<T>(observable: Observable<T>): AsyncIterator<T> {
export function observableToAsyncIterable<T>(observable: Observable<T>): AsyncIterator<T> & {
[$$asyncIterator]: () => AsyncIterator<T>,
} {
const pullQueue: Callback[] = [];
const pushQueue: any[] = [];

Expand Down

0 comments on commit b4d0390

Please sign in to comment.