Skip to content

Commit

Permalink
fix: move import statement outsidee the module declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed Aug 17, 2021
1 parent fcee8d5 commit 5d6007f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dev-test/gql-tag-operations-urql/gql/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable */
declare module '@urql/core' {
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';

declare module '@urql/core' {
export function gql(
source: '\n query Foo {\n Tweets {\n id\n }\n }\n'
): typeof import('./graphql').FooDocument;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit 5d6007f

Please sign in to comment.