typedapi-client-helpers 0.1.10 → 0.1.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typedapi-client-helpers",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Reusable typed OpenAPI client helpers.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -617,7 +617,11 @@ export async function ${methodName}(
617
617
  params?: RequestParams
618
618
  ): Promise<ApiResult<ExtractResponse<ReturnType<${className}["${methodName}"]>>>> {
619
619
  return handleApiResponse(
620
- () => ${instanceName}.${methodName}(query, params ?? {}),
620
+ () =>
621
+ ${instanceName}.${methodName}(
622
+ (query ?? {}) as ${toQueryName(methodName)},
623
+ params ?? {}
624
+ ),
621
625
  ${callbackOptionsExpression(defaultHandlers)}
622
626
  );
623
627
  }
@@ -648,7 +652,10 @@ export async function ${methodName}(
648
652
  > {
649
653
  return handleApiResponse(
650
654
  () =>
651
- ${instanceName}.${methodName}(query, params ?? {}),
655
+ ${instanceName}.${methodName}(
656
+ (query ?? {}) as ${toQueryName(methodName)},
657
+ params ?? {}
658
+ ),
652
659
  ${callbackOptionsExpression(defaultHandlers)}
653
660
  );
654
661
  }