From 872946a9f17c558dd5c37b19d6c980e476f1e25c Mon Sep 17 00:00:00 2001 From: Laurin Quast Date: Tue, 17 Aug 2021 21:07:55 +0200 Subject: [PATCH] fix: move import statement outsidee the module declaration --- packages/plugins/typescript/gql-tag-operations/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/typescript/gql-tag-operations/src/index.ts b/packages/plugins/typescript/gql-tag-operations/src/index.ts index f1ecd74aea7d..8de532386379 100644 --- a/packages/plugins/typescript/gql-tag-operations/src/index.ts +++ b/packages/plugins/typescript/gql-tag-operations/src/index.ts @@ -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`,