@graphql-codegen/typescript-operations 6.0.1 → 6.0.2
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 +2 -2
- package/esm/visitor.js +2 -2
- package/package.json +1 -1
package/cjs/visitor.js
CHANGED
|
@@ -372,8 +372,8 @@ class TypeScriptDocumentsVisitor extends visitor_plugin_common_1.BaseDocumentsVi
|
|
|
372
372
|
const scalarType = usedSchemaTypes[node.name] || {
|
|
373
373
|
type: 'GraphQLScalarType',
|
|
374
374
|
node,
|
|
375
|
-
tsType:
|
|
376
|
-
|
|
375
|
+
tsType: this.config.scalars?.[node.name]?.input.type ??
|
|
376
|
+
visitor_plugin_common_1.DEFAULT_INPUT_SCALARS[node.name]?.input ??
|
|
377
377
|
'unknown',
|
|
378
378
|
useCases: {
|
|
379
379
|
variables: location === 'variables',
|
package/esm/visitor.js
CHANGED
|
@@ -368,8 +368,8 @@ export class TypeScriptDocumentsVisitor extends BaseDocumentsVisitor {
|
|
|
368
368
|
const scalarType = usedSchemaTypes[node.name] || {
|
|
369
369
|
type: 'GraphQLScalarType',
|
|
370
370
|
node,
|
|
371
|
-
tsType:
|
|
372
|
-
|
|
371
|
+
tsType: this.config.scalars?.[node.name]?.input.type ??
|
|
372
|
+
DEFAULT_INPUT_SCALARS[node.name]?.input ??
|
|
373
373
|
'unknown',
|
|
374
374
|
useCases: {
|
|
375
375
|
variables: location === 'variables',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-operations",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
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": {
|