Skip to content

Commit

Permalink
fix: move import statement outsidee the module declaration
Browse files Browse the repository at this point in the history
n1ru4l committed Aug 17, 2021
1 parent fcee8d5 commit 872946a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -48,9 +48,9 @@ export const plugin: PluginFunction<{
}

return [
`import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\n`,
`declare module "${config.augmentedModuleName}" {`,
[
`import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\n`,
`\n`,
...getGqlOverloadChunk(config.sourcesWithOperations, 'augmented'),
`export function gql(source: string): unknown;\n`,

0 comments on commit 872946a

Please sign in to comment.