@graphql-codegen/gql-tag-operations 1.4.1-alpha-0814e49cc.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/gql-tag-operations",
3
- "version": "1.4.1-alpha-0814e49cc.0",
3
+ "version": "1.4.1",
4
4
  "description": "GraphQL Code Generator plugin for generating a typed gql tag function",
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
@@ -8,8 +8,8 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@graphql-tools/utils": "^8.8.0",
11
- "@graphql-codegen/plugin-helpers": "^2.6.1-alpha-0814e49cc.0",
12
- "@graphql-codegen/visitor-plugin-common": "2.12.1-alpha-0814e49cc.0",
11
+ "@graphql-codegen/plugin-helpers": "^2.6.2",
12
+ "@graphql-codegen/visitor-plugin-common": "2.12.1",
13
13
  "auto-bind": "~4.0.0",
14
14
  "tslib": "~2.4.0"
15
15
  },
@@ -29,7 +29,7 @@
29
29
  "exports": {
30
30
  ".": {
31
31
  "require": {
32
- "types": "./typings/index.d.ts",
32
+ "types": "./typings/index.d.cts",
33
33
  "default": "./cjs/index.js"
34
34
  },
35
35
  "import": {
@@ -0,0 +1,17 @@
1
+ import { PluginFunction } from '@graphql-codegen/plugin-helpers';
2
+ import { FragmentDefinitionNode, OperationDefinitionNode } from 'graphql';
3
+ import { Source } from '@graphql-tools/utils';
4
+ export declare type OperationOrFragment = {
5
+ initialName: string;
6
+ definition: OperationDefinitionNode | FragmentDefinitionNode;
7
+ };
8
+ export declare type SourceWithOperations = {
9
+ source: Source;
10
+ operations: Array<OperationOrFragment>;
11
+ };
12
+ export declare const plugin: PluginFunction<{
13
+ sourcesWithOperations: Array<SourceWithOperations>;
14
+ useTypeImports?: boolean;
15
+ augmentedModuleName?: string;
16
+ emitLegacyCommonJSImports?: boolean;
17
+ }>;