Skip to content

Commit 9161f31

Browse files
authored
feat(esm): Global export of gql type (#381)
1 parent 5be03c8 commit 9161f31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import type _gql from 'graphql-tag'
22

3+
type Gql = typeof _gql
4+
35
declare global {
4-
const gql: typeof _gql
6+
const gql: Gql['gql'] extends undefined ? Gql : Gql['gql']
57
}

0 commit comments

Comments
 (0)