mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
docs: update types for useFetch/useAsyncData (#23730)
This commit is contained in:
parent
10bdea968f
commit
1357a3d9ff
@ -31,7 +31,7 @@ type AsyncDataOptions<DataT> = {
|
|||||||
transform?: (input: DataT) => DataT
|
transform?: (input: DataT) => DataT
|
||||||
pick?: string[]
|
pick?: string[]
|
||||||
watch?: WatchSource[]
|
watch?: WatchSource[]
|
||||||
getCachedData?: (key: string) => any
|
getCachedData?: (key: string) => DataT
|
||||||
}
|
}
|
||||||
|
|
||||||
type AsyncData<DataT, ErrorT> = {
|
type AsyncData<DataT, ErrorT> = {
|
||||||
|
@ -26,7 +26,7 @@ type UseFetchOptions<DataT> = {
|
|||||||
server?: boolean
|
server?: boolean
|
||||||
lazy?: boolean
|
lazy?: boolean
|
||||||
immediate?: boolean
|
immediate?: boolean
|
||||||
getCachedData?: (key: string) => any
|
getCachedData?: (key: string) => DataT
|
||||||
deep?: boolean
|
deep?: boolean
|
||||||
default?: () => DataT
|
default?: () => DataT
|
||||||
transform?: (input: DataT) => DataT
|
transform?: (input: DataT) => DataT
|
||||||
|
Loading…
Reference in New Issue
Block a user