diff --git a/package.json b/package.json index c59f06c..d753cd3 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "defu": "^6.1.4", "ofetch": "^1.3.4", "ohash": "^1.1.3", - "openapi-typescript-helpers": "0.0.8", + "openapi-typescript-helpers": "^0.0.9", "pathe": "^1.1.2", "scule": "^1.3.0", "ufo": "^1.5.3" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d1c13ec..fdf2c39 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,8 +21,8 @@ importers: specifier: ^1.1.3 version: 1.1.3 openapi-typescript-helpers: - specifier: 0.0.8 - version: 0.0.8 + specifier: ^0.0.9 + version: 0.0.9 pathe: specifier: ^1.1.2 version: 1.1.2 @@ -3605,8 +3605,8 @@ packages: resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==} engines: {node: '>=12'} - openapi-typescript-helpers@0.0.8: - resolution: {integrity: sha512-1eNjQtbfNi5Z/kFhagDIaIRj6qqDzhjNJKz8cmMW0CVdGwT6e1GLbAfgI0d28VTJa1A8jz82jm/4dG8qNoNS8g==} + openapi-typescript-helpers@0.0.9: + resolution: {integrity: sha512-BO2TvIDAO/FPVKz1Nj2gy+pUOHfaoENdK5UP3H0Jbh0VXBf3dwYMs58ZwOjiezrbHA2LamdquoyQgahTPvIxGA==} openapi-typescript@6.7.6: resolution: {integrity: sha512-c/hfooPx+RBIOPM09GSxABOZhYPblDoyaGhqBkD/59vtpN21jEuWKDlM0KYTvqJVlSYjKs0tBcIdeXKChlSPtw==} @@ -9296,7 +9296,7 @@ snapshots: is-docker: 2.2.1 is-wsl: 2.2.0 - openapi-typescript-helpers@0.0.8: {} + openapi-typescript-helpers@0.0.9: {} openapi-typescript@6.7.6: dependencies: diff --git a/src/runtime/openapi.ts b/src/runtime/openapi.ts index 9cb042a..e8a8ac6 100644 --- a/src/runtime/openapi.ts +++ b/src/runtime/openapi.ts @@ -3,23 +3,14 @@ import type { MaybeRefOrGetter } from 'vue' import type { NuxtError } from 'nuxt/app' import type { ErrorResponse, - FilterKeys, MediaType, OperationRequestBodyContent, ResponseObjectMap, SuccessResponse, } from 'openapi-typescript-helpers' -export type FetchResponseData = FilterKeys< - SuccessResponse>, - MediaType -> -export type FetchResponseError = NuxtError< - FilterKeys< - ErrorResponse>, - MediaType - > -> +export type FetchResponseData = SuccessResponse, MediaType> +export type FetchResponseError = NuxtError, MediaType>> export type MethodOption = 'get' extends keyof P ? { method?: M } : { method: M }