Skip to content

Commit

Permalink
chore: revert type fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Apr 24, 2024
1 parent 009303c commit 78f30a3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/runtime/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,21 @@ import type { MaybeRefOrGetter } from 'vue'
import type { NuxtError } from 'nuxt/app'
import type {
ErrorResponse,
GetValueWithDefault,
FilterKeys,
MediaType,
OperationRequestBodyContent,
ResponseObjectMap,
SuccessResponse,
} from 'openapi-typescript-helpers'

export type FetchResponseData<T> = GetValueWithDefault<
export type FetchResponseData<T> = FilterKeys<
SuccessResponse<ResponseObjectMap<T>>,
MediaType,
Record<string, never>
MediaType
>
export type FetchResponseError<T> = NuxtError<
GetValueWithDefault<
FilterKeys<
ErrorResponse<ResponseObjectMap<T>>,
MediaType,
Record<string, never>
MediaType
>
>

Expand Down

0 comments on commit 78f30a3

Please sign in to comment.