Skip to content

Commit 2a999b9

Browse files
committed
fix incorrect use of generics in pubsub.subscribe method
1 parent 2518aa5 commit 2a999b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ app.graphql.pubsub.publish({
398398
})
399399

400400
async () => {
401-
const subscription = await app.graphql.pubsub.subscribe<{ newNotification: string }>('topic')
401+
const subscription = await app.graphql.pubsub.subscribe('topic')
402402

403403
subscription.on('data', (chunk) => {
404404
console.log(chunk)

0 commit comments

Comments
 (0)