mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-21 21:25:11 +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
|
||||
pick?: string[]
|
||||
watch?: WatchSource[]
|
||||
getCachedData?: (key: string) => any
|
||||
getCachedData?: (key: string) => DataT
|
||||
}
|
||||
|
||||
type AsyncData<DataT, ErrorT> = {
|
||||
|
@ -26,7 +26,7 @@ type UseFetchOptions<DataT> = {
|
||||
server?: boolean
|
||||
lazy?: boolean
|
||||
immediate?: boolean
|
||||
getCachedData?: (key: string) => any
|
||||
getCachedData?: (key: string) => DataT
|
||||
deep?: boolean
|
||||
default?: () => DataT
|
||||
transform?: (input: DataT) => DataT
|
||||
|
Loading…
Reference in New Issue
Block a user