From 335793340049f9cf89f0807524dd8b7b91c2f5f9 Mon Sep 17 00:00:00 2001 From: Grant Wu Date: Mon, 1 Apr 2019 15:45:42 -0400 Subject: [PATCH] Correct type resolve functions do not return a value --- src/pubsub-async-iterator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pubsub-async-iterator.ts b/src/pubsub-async-iterator.ts index 820c523..ddc994f 100644 --- a/src/pubsub-async-iterator.ts +++ b/src/pubsub-async-iterator.ts @@ -35,7 +35,7 @@ import { PubSubEngine } from './pubsub-engine'; */ export class PubSubAsyncIterator implements AsyncIterator { - private pullQueue: ((value?: any) => Promise>)[]; + private pullQueue: ((value: IteratorResult) => void)[]; private pushQueue: T[]; private eventsArray: string[]; private allSubscribed: Promise;