We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5be03c8 commit 9161f31Copy full SHA for 9161f31
packages/graphql-server/src/global.api-auto-imports.ts
@@ -1,5 +1,7 @@
1
import type _gql from 'graphql-tag'
2
3
+type Gql = typeof _gql
4
+
5
declare global {
- const gql: typeof _gql
6
+ const gql: Gql['gql'] extends undefined ? Gql : Gql['gql']
7
}
0 commit comments