This repository was archived by the owner on May 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export const concat =
3232const createHandler = ( topicDefinitions : SubscriptionDefinition [ ] ) => {
3333 // eslint-disable-next-line @typescript-eslint/no-explicit-any
3434 // eslint-disable-next-line require-yield
35- const handler : any = function * ( ) {
35+ const handler : any = async function * ( ) {
3636 throw new Error ( 'Subscription handler should not have been called' )
3737 }
3838 handler . topicDefinitions = topicDefinitions
Original file line number Diff line number Diff line change 1+ /* eslint-disable @typescript-eslint/no-explicit-any */
12/* eslint-disable @typescript-eslint/ban-types */
23import { ConnectionInitMessage , PingMessage , PongMessage } from 'graphql-ws'
34import { DataMapper } from '@aws/dynamodb-data-mapper'
@@ -72,7 +73,7 @@ export type SubscriptionDefinition = {
7273export type SubscribeHandler = ( ...args : any [ ] ) => SubscribePsuedoIterable
7374
7475export type SubscribePsuedoIterable = {
75- ( ...args : SubscribeArgs ) : Generator < never , never , unknown >
76+ ( ...args : SubscribeArgs ) : AsyncGenerator < never , never , unknown >
7677 topicDefinitions : SubscriptionDefinition [ ]
7778 onSubscribe ?: ( ...args : SubscribeArgs ) => void | Promise < void >
7879 onComplete ?: ( ...args : SubscribeArgs ) => void | Promise < void >
You can’t perform that action at this time.
0 commit comments