You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the exact same issue as described in the issue linked above.
The returned AsyncIterator also implements the AsyncIterable interface (having an [Symbol.asyncIterator] property). GraphQL subscriptions expect an async iterable, not an async iterator, so this works at run time, but the typings are incomplete. Many of the type-definitions for subscribe functions are wrong, so this issue has gone un-resolved for a long time, but technically the correct thing here is to update the return type so that it correctly indicates that the returned value is both an AsyncIterator and an AsyncIterable.
The text was updated successfully, but these errors were encountered:
See apollographql/graphql-subscriptions#261
This is the exact same issue as described in the issue linked above.
The returned AsyncIterator also implements the AsyncIterable interface (having an
[Symbol.asyncIterator]
property). GraphQL subscriptions expect an async iterable, not an async iterator, so this works at run time, but the typings are incomplete. Many of the type-definitions for subscribe functions are wrong, so this issue has gone un-resolved for a long time, but technically the correct thing here is to update the return type so that it correctly indicates that the returned value is both an AsyncIterator and an AsyncIterable.The text was updated successfully, but these errors were encountered: