@graphql-codegen/typescript-operations 5.0.4 → 6.0.0-alpha-20251115114232-bd165e82320ed2cee35fe09cc96b5b0598536293
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/cjs/index.js +5 -1
- package/esm/index.js +5 -1
- package/package.json +3 -3
package/cjs/index.js
CHANGED
|
@@ -67,7 +67,11 @@ const plugin = async (inputSchema, rawDocuments, config) => {
|
|
|
67
67
|
}`;
|
|
68
68
|
}
|
|
69
69
|
return {
|
|
70
|
-
prepend: [
|
|
70
|
+
prepend: [
|
|
71
|
+
...visitor.getImports(),
|
|
72
|
+
...visitor.getGlobalDeclarations(visitor.config.noExport),
|
|
73
|
+
'type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };',
|
|
74
|
+
],
|
|
71
75
|
content,
|
|
72
76
|
};
|
|
73
77
|
};
|
package/esm/index.js
CHANGED
|
@@ -40,7 +40,11 @@ export const plugin = async (inputSchema, rawDocuments, config) => {
|
|
|
40
40
|
}`;
|
|
41
41
|
}
|
|
42
42
|
return {
|
|
43
|
-
prepend: [
|
|
43
|
+
prepend: [
|
|
44
|
+
...visitor.getImports(),
|
|
45
|
+
...visitor.getGlobalDeclarations(visitor.config.noExport),
|
|
46
|
+
'type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };',
|
|
47
|
+
],
|
|
44
48
|
content,
|
|
45
49
|
};
|
|
46
50
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-operations",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-alpha-20251115114232-bd165e82320ed2cee35fe09cc96b5b0598536293",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating TypeScript types for GraphQL queries, mutations, subscriptions and fragments",
|
|
5
5
|
"peerDependenciesMeta": {
|
|
6
6
|
"graphql-sock": {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@graphql-codegen/plugin-helpers": "^6.0.0",
|
|
16
|
-
"@graphql-codegen/typescript": "
|
|
17
|
-
"@graphql-codegen/visitor-plugin-common": "6.1.
|
|
16
|
+
"@graphql-codegen/typescript": "6.0.0-alpha-20251115114232-bd165e82320ed2cee35fe09cc96b5b0598536293",
|
|
17
|
+
"@graphql-codegen/visitor-plugin-common": "6.1.0",
|
|
18
18
|
"auto-bind": "~4.0.0",
|
|
19
19
|
"tslib": "~2.6.0"
|
|
20
20
|
},
|