Skip to content

Commit

Permalink
chore: types
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed Feb 6, 2024
1 parent 6013cf3 commit 2a6ed22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ describe('Persisted Operations', () => {
return store.get(key) || null;
},
extractPersistedOperationId(_params, request) {

Check failure on line 457 in packages/plugins/persisted-operations/__tests__/persisted-operations.spec.ts

View workflow job for this annotation

GitHub Actions / release-candidate / snapshot

Type '(_params: GraphQLParams<Record<string, any>, Record<string, any>>, request: Request) => string | undefined' is not assignable to type 'ExtractPersistedOperationId'.
return request.url.split('/graphql/').pop();
return request.url.split('/graphql/').pop() ?? null;
},
}),
],
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/docs/features/persisted-operations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ const yoga = createYoga({
return store[sha256Hash]
},
extractPersistedOperationId(_params, request) {
return request.url.split('/graphql/').pop()
return request.url.split('/graphql/').pop() ?? null
}
})
]
Expand Down

0 comments on commit 2a6ed22

Please sign in to comment.