@graphql-codegen/typescript 4.1.0-alpha-20240728123235-bd811eb66b0cb01fb54099f23808d912298cc6da → 4.1.0-alpha-20240728124755-bcb1bf80fbddeaba61e48b2ab738f4a24b5624c1

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/visitor.js CHANGED
@@ -151,6 +151,8 @@ class TsVisitor extends visitor_plugin_common_1.BaseTypesVisitor {
151
151
  return `${this.getMaybeWrapper(ancestors)}<${super.ListType(node, key, parent, path, ancestors)}>`;
152
152
  }
153
153
  UnionTypeDefinition(node, key, parent) {
154
+ if (this.config.onlyTypescriptOperationTypes)
155
+ return '';
154
156
  if (this.config.onlyOperationTypes || this.config.onlyEnums)
155
157
  return '';
156
158
  let withFutureAddedValue = [];
package/esm/visitor.js CHANGED
@@ -147,6 +147,8 @@ export class TsVisitor extends BaseTypesVisitor {
147
147
  return `${this.getMaybeWrapper(ancestors)}<${super.ListType(node, key, parent, path, ancestors)}>`;
148
148
  }
149
149
  UnionTypeDefinition(node, key, parent) {
150
+ if (this.config.onlyTypescriptOperationTypes)
151
+ return '';
150
152
  if (this.config.onlyOperationTypes || this.config.onlyEnums)
151
153
  return '';
152
154
  let withFutureAddedValue = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript",
3
- "version": "4.1.0-alpha-20240728123235-bd811eb66b0cb01fb54099f23808d912298cc6da",
3
+ "version": "4.1.0-alpha-20240728124755-bcb1bf80fbddeaba61e48b2ab738f4a24b5624c1",
4
4
  "description": "GraphQL Code Generator plugin for generating TypeScript types",
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
@@ -8,7 +8,7 @@
8
8
  "dependencies": {
9
9
  "@graphql-codegen/plugin-helpers": "^5.0.4",
10
10
  "@graphql-codegen/schema-ast": "^4.0.2",
11
- "@graphql-codegen/visitor-plugin-common": "5.4.0-alpha-20240728123235-bd811eb66b0cb01fb54099f23808d912298cc6da",
11
+ "@graphql-codegen/visitor-plugin-common": "5.4.0-alpha-20240728124755-bcb1bf80fbddeaba61e48b2ab738f4a24b5624c1",
12
12
  "auto-bind": "~4.0.0",
13
13
  "tslib": "~2.6.0"
14
14
  },