docs: update types for useFetch/useAsyncData (#23730)

This commit is contained in:
Alexander Lichter 2023-10-17 21:07:00 +02:00 committed by GitHub
parent 10bdea968f
commit 1357a3d9ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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> = {

View File

@ -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