mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix(nuxt3): correct KeysOf
type (#737)
This commit is contained in:
parent
2291a9dd9f
commit
d1e0af928e
@ -5,7 +5,7 @@ import { NuxtApp, useNuxtApp } from '#app'
|
||||
export type _Transform<Input=any, Output=any> = (input: Input) => Output
|
||||
|
||||
export type PickFrom<T, K extends Array<string>> = T extends Record<string, any> ? Pick<T, K[number]> : T
|
||||
export type KeysOf<T> = Array<keyof T extends string ? T : string>
|
||||
export type KeysOf<T> = Array<keyof T extends string ? keyof T : string>
|
||||
export type KeyOfRes<Transform extends _Transform> = KeysOf<ReturnType<Transform>>
|
||||
|
||||
export interface AsyncDataOptions<
|
||||
|
Loading…
Reference in New Issue
Block a user