mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
fix(nuxt): correct return type of refresh
functions (#25568)
This commit is contained in:
parent
ced401abb7
commit
be7d43034b
@ -107,8 +107,8 @@ export interface AsyncDataExecuteOptions {
|
||||
export interface _AsyncData<DataT, ErrorT> {
|
||||
data: Ref<DataT>
|
||||
pending: Ref<boolean>
|
||||
refresh: (opts?: AsyncDataExecuteOptions) => Promise<DataT>
|
||||
execute: (opts?: AsyncDataExecuteOptions) => Promise<DataT>
|
||||
refresh: (opts?: AsyncDataExecuteOptions) => Promise<void>
|
||||
execute: (opts?: AsyncDataExecuteOptions) => Promise<void>
|
||||
error: Ref<ErrorT | null>
|
||||
status: Ref<AsyncDataRequestStatus>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user