Skip to content

Commit

Permalink
fix incorrect use of generics in pubsub.subscribe method
Browse files Browse the repository at this point in the history
  • Loading branch information
adrtivv committed Jan 2, 2025
1 parent 2518aa5 commit 2a999b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ app.graphql.pubsub.publish({
})

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

subscription.on('data', (chunk) => {
console.log(chunk)
Expand Down

0 comments on commit 2a999b9

Please sign in to comment.