@graphql-codegen/fragment-matcher 3.3.1 → 3.3.2-alpha-20221207031847-2e87bf712
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/index.d.cts +48 -21
- package/typings/index.d.ts +48 -21
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/fragment-matcher",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2-alpha-20221207031847-2e87bf712",
|
|
4
4
|
"description": "graphql-code-generate plugin for generating fragments matcher introspection file",
|
|
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
|
-
"@graphql-codegen/plugin-helpers": "
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "3.0.0-alpha-20221207031847-2e87bf712",
|
|
10
10
|
"tslib": "~2.4.0"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
package/typings/index.d.cts
CHANGED
|
@@ -18,13 +18,22 @@ export interface FragmentMatcherConfig {
|
|
|
18
18
|
* @default es2015
|
|
19
19
|
*
|
|
20
20
|
* @exampleMarkdown
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
21
|
+
* ```tsx {10} filename="codegen.ts"
|
|
22
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
23
|
+
*
|
|
24
|
+
* const config: CodegenConfig = {
|
|
25
|
+
* schema: 'https://localhost:4000/graphql',
|
|
26
|
+
* documents: ['src/**\/*.tsx'],
|
|
27
|
+
* generates: {
|
|
28
|
+
* 'path/to/file.json': {
|
|
29
|
+
* plugins: ['fragment-matcher'],
|
|
30
|
+
* config: {
|
|
31
|
+
* module: 'commonjs',
|
|
32
|
+
* },
|
|
33
|
+
* },
|
|
34
|
+
* },
|
|
35
|
+
* };
|
|
36
|
+
* export default config;
|
|
28
37
|
* ```
|
|
29
38
|
*/
|
|
30
39
|
module?: 'commonjs' | 'es2015';
|
|
@@ -33,13 +42,22 @@ export interface FragmentMatcherConfig {
|
|
|
33
42
|
* @default 3
|
|
34
43
|
*
|
|
35
44
|
* @exampleMarkdown
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
45
|
+
* ```tsx {10} filename="codegen.ts"
|
|
46
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
47
|
+
*
|
|
48
|
+
* const config: CodegenConfig = {
|
|
49
|
+
* schema: 'https://localhost:4000/graphql',
|
|
50
|
+
* documents: ['src/**\/*.tsx'],
|
|
51
|
+
* generates: {
|
|
52
|
+
* 'path/to/file.json': {
|
|
53
|
+
* plugins: ['fragment-matcher'],
|
|
54
|
+
* config: {
|
|
55
|
+
* apolloClientVersion: 3,
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* };
|
|
60
|
+
* export default config;
|
|
43
61
|
* ```
|
|
44
62
|
*/
|
|
45
63
|
apolloClientVersion?: 2 | 3;
|
|
@@ -48,13 +66,22 @@ export interface FragmentMatcherConfig {
|
|
|
48
66
|
* @default false
|
|
49
67
|
*
|
|
50
68
|
* @exampleMarkdown
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
69
|
+
* ```tsx {10} filename="codegen.ts"
|
|
70
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
71
|
+
*
|
|
72
|
+
* const config: CodegenConfig = {
|
|
73
|
+
* schema: 'https://localhost:4000/graphql',
|
|
74
|
+
* documents: ['src/**\/*.tsx'],
|
|
75
|
+
* generates: {
|
|
76
|
+
* 'path/to/file.json': {
|
|
77
|
+
* plugins: ['fragment-matcher'],
|
|
78
|
+
* config: {
|
|
79
|
+
* useExplicitTyping: true
|
|
80
|
+
* },
|
|
81
|
+
* },
|
|
82
|
+
* },
|
|
83
|
+
* };
|
|
84
|
+
* export default config;
|
|
58
85
|
* ```
|
|
59
86
|
*/
|
|
60
87
|
useExplicitTyping?: boolean;
|
package/typings/index.d.ts
CHANGED
|
@@ -18,13 +18,22 @@ export interface FragmentMatcherConfig {
|
|
|
18
18
|
* @default es2015
|
|
19
19
|
*
|
|
20
20
|
* @exampleMarkdown
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
21
|
+
* ```tsx {10} filename="codegen.ts"
|
|
22
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
23
|
+
*
|
|
24
|
+
* const config: CodegenConfig = {
|
|
25
|
+
* schema: 'https://localhost:4000/graphql',
|
|
26
|
+
* documents: ['src/**\/*.tsx'],
|
|
27
|
+
* generates: {
|
|
28
|
+
* 'path/to/file.json': {
|
|
29
|
+
* plugins: ['fragment-matcher'],
|
|
30
|
+
* config: {
|
|
31
|
+
* module: 'commonjs',
|
|
32
|
+
* },
|
|
33
|
+
* },
|
|
34
|
+
* },
|
|
35
|
+
* };
|
|
36
|
+
* export default config;
|
|
28
37
|
* ```
|
|
29
38
|
*/
|
|
30
39
|
module?: 'commonjs' | 'es2015';
|
|
@@ -33,13 +42,22 @@ export interface FragmentMatcherConfig {
|
|
|
33
42
|
* @default 3
|
|
34
43
|
*
|
|
35
44
|
* @exampleMarkdown
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
45
|
+
* ```tsx {10} filename="codegen.ts"
|
|
46
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
47
|
+
*
|
|
48
|
+
* const config: CodegenConfig = {
|
|
49
|
+
* schema: 'https://localhost:4000/graphql',
|
|
50
|
+
* documents: ['src/**\/*.tsx'],
|
|
51
|
+
* generates: {
|
|
52
|
+
* 'path/to/file.json': {
|
|
53
|
+
* plugins: ['fragment-matcher'],
|
|
54
|
+
* config: {
|
|
55
|
+
* apolloClientVersion: 3,
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* };
|
|
60
|
+
* export default config;
|
|
43
61
|
* ```
|
|
44
62
|
*/
|
|
45
63
|
apolloClientVersion?: 2 | 3;
|
|
@@ -48,13 +66,22 @@ export interface FragmentMatcherConfig {
|
|
|
48
66
|
* @default false
|
|
49
67
|
*
|
|
50
68
|
* @exampleMarkdown
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
69
|
+
* ```tsx {10} filename="codegen.ts"
|
|
70
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
71
|
+
*
|
|
72
|
+
* const config: CodegenConfig = {
|
|
73
|
+
* schema: 'https://localhost:4000/graphql',
|
|
74
|
+
* documents: ['src/**\/*.tsx'],
|
|
75
|
+
* generates: {
|
|
76
|
+
* 'path/to/file.json': {
|
|
77
|
+
* plugins: ['fragment-matcher'],
|
|
78
|
+
* config: {
|
|
79
|
+
* useExplicitTyping: true
|
|
80
|
+
* },
|
|
81
|
+
* },
|
|
82
|
+
* },
|
|
83
|
+
* };
|
|
84
|
+
* export default config;
|
|
58
85
|
* ```
|
|
59
86
|
*/
|
|
60
87
|
useExplicitTyping?: boolean;
|