@graphql-codegen/typescript-rtk-query 4.0.2 → 4.0.3-alpha-20260610133708-8973b550d592be5cd8cf50a9fb1ae9b6e0eefab0
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 +1 -1
- package/esm/visitor.js +1 -1
- package/package.json +1 -1
package/cjs/visitor.js
CHANGED
|
@@ -83,7 +83,7 @@ export { injectedRtkApi as api };
|
|
|
83
83
|
}
|
|
84
84
|
const Generics = `${operationResultType}, ${operationVariablesTypes}${hasRequiredVariables ? '' : ' | void'}`;
|
|
85
85
|
const operationTypeString = operationType.toLowerCase();
|
|
86
|
-
const functionsString = `query: (variables) => ({ document: ${documentVariableName}, variables })
|
|
86
|
+
const functionsString = `query: (variables) => ({ document: ${documentVariableName} unknown as string, variables })
|
|
87
87
|
${this.injectTransformResponse(Generics)}`.trim();
|
|
88
88
|
const endpointString = `
|
|
89
89
|
${operationName}: build.${operationTypeString}<${Generics}>({
|
package/esm/visitor.js
CHANGED
|
@@ -79,7 +79,7 @@ export { injectedRtkApi as api };
|
|
|
79
79
|
}
|
|
80
80
|
const Generics = `${operationResultType}, ${operationVariablesTypes}${hasRequiredVariables ? '' : ' | void'}`;
|
|
81
81
|
const operationTypeString = operationType.toLowerCase();
|
|
82
|
-
const functionsString = `query: (variables) => ({ document: ${documentVariableName}, variables })
|
|
82
|
+
const functionsString = `query: (variables) => ({ document: ${documentVariableName} unknown as string, variables })
|
|
83
83
|
${this.injectTransformResponse(Generics)}`.trim();
|
|
84
84
|
const endpointString = `
|
|
85
85
|
${operationName}: build.${operationTypeString}<${Generics}>({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-rtk-query",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3-alpha-20260610133708-8973b550d592be5cd8cf50a9fb1ae9b6e0eefab0",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for injecting graphql endpoints into a preconfigured RTK Query api",
|
|
5
5
|
"peerDependenciesMeta": {
|
|
6
6
|
"graphql-request": {
|