Skip to content

Commit

Permalink
Fix incompatibility between iterall and newer TypeScript types.
Browse files Browse the repository at this point in the history
This wouldn't be necessary if this project had a `package-lock.json`, but...
  • Loading branch information
abernix committed Feb 17, 2020
1 parent 713ffe2 commit c7f5088
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stitching/observableToAsyncIterable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ 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 c7f5088

Please sign in to comment.