@conduit-client/generator-ts 3.17.1 → 3.17.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/dist/v1/index.js +3 -3
- package/dist/v1/index.js.map +1 -1
- package/package.json +7 -7
package/dist/v1/index.js
CHANGED
|
@@ -3027,7 +3027,7 @@ class ImperativeAdapterBindingGenerator {
|
|
|
3027
3027
|
const requiresTypeRegistry = this.commandModel.cacheStrategy.type === "normalized" || this.commandModel.invalidationConfigs.length > 0;
|
|
3028
3028
|
const typeRegistry = requiresTypeRegistry ? "typeRegistry," : "";
|
|
3029
3029
|
return code`const ${this.localCommandConstructorName} = services.instrumentCommand(${this.classBuilderImport}(${servicesName}.${this.commandModel.serviceDependencies.baseClass.localName}), '${this.commandModel.className}');
|
|
3030
|
-
const ${this.binding.identifier}=${this.invoker}<Parameters<
|
|
3030
|
+
const ${this.binding.identifier}=${this.invoker}<Parameters<BindingsExports["${this.binding.identifier}"]>,${this.responseTypeCode}>(
|
|
3031
3031
|
({params,assertIsValid})=>{
|
|
3032
3032
|
const config=params[0];
|
|
3033
3033
|
const options=params[1];
|
|
@@ -3286,7 +3286,7 @@ class GraphQLImperativeAdapterBindingGenerator {
|
|
|
3286
3286
|
}
|
|
3287
3287
|
buildInvocation(servicesName = "services") {
|
|
3288
3288
|
return code`const ${this.localCommandConstructorName} = services.instrumentCommand(${this.classBuilderImport}(${servicesName}.${this.commandModel.serviceDependencies.baseClass.localName}), '${this.commandModel.className}');
|
|
3289
|
-
const ${this.binding.identifier}=${this.invoker}<Parameters<
|
|
3289
|
+
const ${this.binding.identifier}=${this.invoker}<Parameters<BindingsExports["${this.binding.identifier}"]>>(
|
|
3290
3290
|
({params,assertIsValid})=>{
|
|
3291
3291
|
const config=params[0];
|
|
3292
3292
|
const options=params[1];
|
|
@@ -3412,7 +3412,7 @@ class GraphQLMutationAdapterBindingGenerator {
|
|
|
3412
3412
|
}
|
|
3413
3413
|
buildInvocation(servicesName = "services") {
|
|
3414
3414
|
return code`const ${this.localCommandConstructorName} = services.instrumentCommand(${this.classBuilderImport}(${servicesName}.${this.commandModel.serviceDependencies.baseClass.localName}), '${this.commandModel.className}');
|
|
3415
|
-
const ${this.binding.identifier}=${this.invoker}<Parameters<
|
|
3415
|
+
const ${this.binding.identifier}=${this.invoker}<Parameters<BindingsExports["${this.binding.identifier}"]>>(
|
|
3416
3416
|
({params,assertIsValid})=>{
|
|
3417
3417
|
const config=params[0];
|
|
3418
3418
|
const options=params[1];
|