typed-openapi 1.1.1 → 1.1.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.
@@ -931,7 +931,7 @@ var generateTanstackQueryFile = async (ctx) => {
931
931
  }),
932
932
  mutationOptions: {
933
933
  mutationKey: queryKey,
934
- mutationFn: async (localOptions) => {
934
+ mutationFn: async (localOptions: TEndpoint extends { parameters: infer Parameters} ? Parameters: never) => {
935
935
  const res = await this.client.${method}(path, {
936
936
  ...params,
937
937
  ...queryKey[0],
package/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  generateTanstackQueryFile,
5
5
  mapOpenApiEndpoints,
6
6
  prettify
7
- } from "./chunk-YSJGYFYM.js";
7
+ } from "./chunk-PXWODSHO.js";
8
8
 
9
9
  // src/cli.ts
10
10
  import SwaggerParser from "@apidevtools/swagger-parser";
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  openApiSchemaToTs,
9
9
  tsFactory,
10
10
  unwrap
11
- } from "./chunk-YSJGYFYM.js";
11
+ } from "./chunk-PXWODSHO.js";
12
12
  export {
13
13
  createBoxFactory,
14
14
  createFactory,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "typed-openapi",
3
3
  "type": "module",
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {
@@ -91,7 +91,7 @@ export const generateTanstackQueryFile = async (ctx: GeneratorContext & { relati
91
91
  }),
92
92
  mutationOptions: {
93
93
  mutationKey: queryKey,
94
- mutationFn: async (localOptions) => {
94
+ mutationFn: async (localOptions: TEndpoint extends { parameters: infer Parameters} ? Parameters: never) => {
95
95
  const res = await this.client.${method}(path, {
96
96
  ...params,
97
97
  ...queryKey[0],