@graphql-codegen/typescript-apollo-client-helpers 2.2.3-alpha-0814e49cc.0 → 2.2.3

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,14 +1,14 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-apollo-client-helpers",
3
- "version": "2.2.3-alpha-0814e49cc.0",
3
+ "version": "2.2.3",
4
4
  "description": "GraphQL Code Generator plugin for generating TypeScript helpers for Apollo Client > 3",
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"
7
7
  },
8
8
  "dependencies": {
9
9
  "change-case-all": "1.0.14",
10
- "@graphql-codegen/plugin-helpers": "^2.6.1-alpha-0814e49cc.0",
11
- "@graphql-codegen/visitor-plugin-common": "2.12.1-alpha-0814e49cc.0",
10
+ "@graphql-codegen/plugin-helpers": "^2.6.2",
11
+ "@graphql-codegen/visitor-plugin-common": "2.12.1",
12
12
  "auto-bind": "~4.0.0",
13
13
  "tslib": "~2.4.0"
14
14
  },
@@ -28,7 +28,7 @@
28
28
  "exports": {
29
29
  ".": {
30
30
  "require": {
31
- "types": "./typings/index.d.ts",
31
+ "types": "./typings/index.d.cts",
32
32
  "default": "./cjs/index.js"
33
33
  },
34
34
  "import": {
@@ -0,0 +1,32 @@
1
+ export declare type ApolloClientHelpersConfig = {
2
+ /**
3
+ * @name useTypeImports
4
+ * @type boolean
5
+ * @default false
6
+ * @description Will use `import type {}` rather than `import {}` when importing only types. This gives
7
+ * compatibility with TypeScript's "importsNotUsedAsValues": "error" option
8
+ *
9
+ * @example
10
+ * ```yaml
11
+ * config:
12
+ * useTypeImports: true
13
+ * ```
14
+ */
15
+ useTypeImports?: boolean;
16
+ /**
17
+ * @name requireKeyFields
18
+ * @type boolean
19
+ * @default false
20
+ * @description Remove optional sign from all `keyFields` fields.
21
+ *
22
+ */
23
+ requireKeyFields?: boolean;
24
+ /**
25
+ * @name requirePoliciesForAllTypes
26
+ * @type boolean
27
+ * @default false
28
+ * @description Remove optional sign from all generated keys of the root TypePolicy.
29
+ *
30
+ */
31
+ requirePoliciesForAllTypes?: boolean;
32
+ };
@@ -0,0 +1,4 @@
1
+ import { PluginValidateFn, PluginFunction } from '@graphql-codegen/plugin-helpers';
2
+ import { ApolloClientHelpersConfig } from './config.cjs';
3
+ export declare const plugin: PluginFunction<ApolloClientHelpersConfig>;
4
+ export declare const validate: PluginValidateFn<ApolloClientHelpersConfig>;