We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ef7c4d commit 099f880Copy full SHA for 099f880
src/index.d.ts
@@ -21,7 +21,7 @@ export interface AsyncProps<T> extends AsyncOptions<T> {
21
}
22
23
interface AbstractState<T> {
24
- initialValue?: T
+ initialValue?: T | Error
25
counter: number
26
cancel: () => void
27
run: (...args: any[]) => Promise<T>
@@ -31,6 +31,7 @@ interface AbstractState<T> {
31
32
33
export type AsyncInitial<T> = AbstractState<T> & {
34
+ initialValue?: undefined
35
data: undefined
36
error: undefined
37
startedAt: undefined
0 commit comments