graphql-subscriptions icon indicating copy to clipboard operation
graphql-subscriptions copied to clipboard

pubSub.asyncIterator() return type

Open stephentuso opened this issue 7 years ago • 5 comments

Shouldn't the return type be AsyncIterableIterator (TS lib file) instead of AsyncIterator? I see it has the Symbol.asyncIterator property here

stephentuso avatar Mar 04 '19 04:03 stephentuso

Sounds correct - would you like to make a PR?

grantwwu avatar Mar 04 '19 15:03 grantwwu

Will do 👍

stephentuso avatar Mar 04 '19 16:03 stephentuso

Hmm if we use just AsyncIterator<T> how can we check the types of return object? Should we use AsyncIterator<T, TReturn, TNext> instead?

ghost avatar Nov 13 '19 13:11 ghost

Any news on this? How I should I have to type below case?

image

hyochan avatar Jan 18 '20 08:01 hyochan

Any news?

maxpain avatar Jun 20 '22 02:06 maxpain