@graphql-codegen/typescript 5.0.0-alpha-20250812131146-d8919a6237f19450de571b59081b880c2e7d3494 → 5.0.0-alpha-20250813125320-63ac348b428178b17ad9fae069ce727ffddb8744
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.
|
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const auto_bind_1 = tslib_1.__importDefault(require("auto-bind"));
|
|
6
6
|
const visitor_js_1 = require("./visitor.js");
|
|
7
7
|
class TsIntrospectionVisitor extends visitor_js_1.TsVisitor {
|
|
8
|
+
typesToInclude = [];
|
|
8
9
|
constructor(schema, pluginConfig = {}, typesToInclude) {
|
|
9
10
|
super(schema, pluginConfig);
|
|
10
|
-
this.typesToInclude = [];
|
|
11
11
|
this.typesToInclude = typesToInclude;
|
|
12
12
|
(0, auto_bind_1.default)(this);
|
|
13
13
|
}
|
|
@@ -4,6 +4,9 @@ exports.TypeScriptOperationVariablesToObject = void 0;
|
|
|
4
4
|
const visitor_plugin_common_1 = require("@graphql-codegen/visitor-plugin-common");
|
|
5
5
|
const graphql_1 = require("graphql");
|
|
6
6
|
class TypeScriptOperationVariablesToObject extends visitor_plugin_common_1.OperationVariablesToObject {
|
|
7
|
+
_avoidOptionals;
|
|
8
|
+
_immutableTypes;
|
|
9
|
+
_maybeType;
|
|
7
10
|
constructor(_scalars, _convertName, _avoidOptionals, _immutableTypes, _namespacedImportName = null, _enumNames = [], _enumPrefix = true, _enumSuffix = true, _enumValues = {}, _applyCoercion = false, _directiveArgumentAndInputFieldMappings = {}, _maybeType = 'Maybe') {
|
|
8
11
|
super(_scalars, _convertName, _namespacedImportName, _enumNames, _enumPrefix, _enumSuffix, _enumValues, _applyCoercion, _directiveArgumentAndInputFieldMappings);
|
|
9
12
|
this._avoidOptionals = _avoidOptionals;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import autoBind from 'auto-bind';
|
|
2
2
|
import { TsVisitor } from './visitor.js';
|
|
3
3
|
export class TsIntrospectionVisitor extends TsVisitor {
|
|
4
|
+
typesToInclude = [];
|
|
4
5
|
constructor(schema, pluginConfig = {}, typesToInclude) {
|
|
5
6
|
super(schema, pluginConfig);
|
|
6
|
-
this.typesToInclude = [];
|
|
7
7
|
this.typesToInclude = typesToInclude;
|
|
8
8
|
autoBind(this);
|
|
9
9
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { OperationVariablesToObject, } from '@graphql-codegen/visitor-plugin-common';
|
|
2
2
|
import { Kind } from 'graphql';
|
|
3
3
|
export class TypeScriptOperationVariablesToObject extends OperationVariablesToObject {
|
|
4
|
+
_avoidOptionals;
|
|
5
|
+
_immutableTypes;
|
|
6
|
+
_maybeType;
|
|
4
7
|
constructor(_scalars, _convertName, _avoidOptionals, _immutableTypes, _namespacedImportName = null, _enumNames = [], _enumPrefix = true, _enumSuffix = true, _enumValues = {}, _applyCoercion = false, _directiveArgumentAndInputFieldMappings = {}, _maybeType = 'Maybe') {
|
|
5
8
|
super(_scalars, _convertName, _namespacedImportName, _enumNames, _enumPrefix, _enumSuffix, _enumValues, _applyCoercion, _directiveArgumentAndInputFieldMappings);
|
|
6
9
|
this._avoidOptionals = _avoidOptionals;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript",
|
|
3
|
-
"version": "5.0.0-alpha-
|
|
3
|
+
"version": "5.0.0-alpha-20250813125320-63ac348b428178b17ad9fae069ce727ffddb8744",
|
|
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"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-codegen/plugin-helpers": "6.0.0-alpha-
|
|
10
|
-
"@graphql-codegen/schema-ast": "5.0.0-alpha-
|
|
11
|
-
"@graphql-codegen/visitor-plugin-common": "6.0.0-alpha-
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "6.0.0-alpha-20250813125320-63ac348b428178b17ad9fae069ce727ffddb8744",
|
|
10
|
+
"@graphql-codegen/schema-ast": "5.0.0-alpha-20250813125320-63ac348b428178b17ad9fae069ce727ffddb8744",
|
|
11
|
+
"@graphql-codegen/visitor-plugin-common": "6.0.0-alpha-20250813125320-63ac348b428178b17ad9fae069ce727ffddb8744",
|
|
12
12
|
"auto-bind": "~4.0.0",
|
|
13
13
|
"tslib": "~2.6.0"
|
|
14
14
|
},
|