Skip to content

Commit

Permalink
fix(useAsyncState): optional argument of execute (vitest-dev#972)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsdsjy committed Nov 26, 2021
1 parent 5391aad commit 6661a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useAsyncState/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface UseAsyncStateReturn<T> {
state: Ref<T>
isReady: Ref<boolean>
error: Ref<unknown>
execute: (delay: number, ...args: any[]) => Promise<T>
execute: (delay?: number, ...args: any[]) => Promise<T>
}

export interface AsyncStateOptions {
Expand Down

0 comments on commit 6661a09

Please sign in to comment.