fix(nuxt): correct return type of refresh functions (#25568)

This commit is contained in:
Ted de Koning 2024-02-02 15:40:07 +01:00 committed by GitHub
parent ced401abb7
commit be7d43034b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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