Skip to content

Commit

Permalink
fix: fixed OpenFetchClientName
Browse files Browse the repository at this point in the history
  • Loading branch information
enkot committed Feb 19, 2024
1 parent 35c2c75 commit 68d24ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/runtime/clients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ import type {

} from "openapi-typescript-helpers"
import type { AsyncData, UseFetchOptions } from "nuxt/app"
// import type { OpenFetchClientName } from '#build/nuxt-open-fetch'
import type { OpenFetchClientName } from '#build/nuxt-open-fetch'
import { toValue } from 'vue'
import { $fetch } from 'ofetch'
import { useNuxtApp, useFetch } from 'nuxt/app'

type OpenFetchClientName = 'pets'

type PickFrom<T, K extends Array<string>> = T extends Array<any> ? T : T extends Record<string, any> ? keyof T extends K[number] ? T : K[number] extends never ? T : Pick<T, K[number]> : T;
type KeysOf<T> = Array<T extends T ? keyof T extends string ? keyof T : never : never>;

Expand Down

0 comments on commit 68d24ee

Please sign in to comment.