@graphql-codegen/typescript-apollo-client-helpers 2.2.4 → 2.2.5-alpha-20221018123033-99bc320fe
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 +2 -2
- package/typings/config.d.cts +16 -4
- package/typings/config.d.ts +16 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-apollo-client-helpers",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5-alpha-20221018123033-99bc320fe",
|
|
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"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"change-case-all": "1.0.14",
|
|
10
10
|
"@graphql-codegen/plugin-helpers": "^2.6.2",
|
|
11
|
-
"@graphql-codegen/visitor-plugin-common": "2.
|
|
11
|
+
"@graphql-codegen/visitor-plugin-common": "2.13.0-alpha-20221018123033-99bc320fe",
|
|
12
12
|
"auto-bind": "~4.0.0",
|
|
13
13
|
"tslib": "~2.4.0"
|
|
14
14
|
},
|
package/typings/config.d.cts
CHANGED
|
@@ -6,10 +6,22 @@ export declare type ApolloClientHelpersConfig = {
|
|
|
6
6
|
* @description Will use `import type {}` rather than `import {}` when importing only types. This gives
|
|
7
7
|
* compatibility with TypeScript's "importsNotUsedAsValues": "error" option
|
|
8
8
|
*
|
|
9
|
-
* @
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* @exampleMarkdown
|
|
10
|
+
* ```ts filename="codegen.ts"
|
|
11
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
12
|
+
*
|
|
13
|
+
* const config: CodegenConfig = {
|
|
14
|
+
* // ...
|
|
15
|
+
* generates: {
|
|
16
|
+
* 'path/to/file': {
|
|
17
|
+
* plugins: ['apollo-angular'],
|
|
18
|
+
* config: {
|
|
19
|
+
* useTypeImports: true
|
|
20
|
+
* },
|
|
21
|
+
* },
|
|
22
|
+
* },
|
|
23
|
+
* };
|
|
24
|
+
* export default config;
|
|
13
25
|
* ```
|
|
14
26
|
*/
|
|
15
27
|
useTypeImports?: boolean;
|
package/typings/config.d.ts
CHANGED
|
@@ -6,10 +6,22 @@ export declare type ApolloClientHelpersConfig = {
|
|
|
6
6
|
* @description Will use `import type {}` rather than `import {}` when importing only types. This gives
|
|
7
7
|
* compatibility with TypeScript's "importsNotUsedAsValues": "error" option
|
|
8
8
|
*
|
|
9
|
-
* @
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* @exampleMarkdown
|
|
10
|
+
* ```ts filename="codegen.ts"
|
|
11
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
12
|
+
*
|
|
13
|
+
* const config: CodegenConfig = {
|
|
14
|
+
* // ...
|
|
15
|
+
* generates: {
|
|
16
|
+
* 'path/to/file': {
|
|
17
|
+
* plugins: ['apollo-angular'],
|
|
18
|
+
* config: {
|
|
19
|
+
* useTypeImports: true
|
|
20
|
+
* },
|
|
21
|
+
* },
|
|
22
|
+
* },
|
|
23
|
+
* };
|
|
24
|
+
* export default config;
|
|
13
25
|
* ```
|
|
14
26
|
*/
|
|
15
27
|
useTypeImports?: boolean;
|