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.
2 parents 737e1e2 + 7e57dfe commit e19beb7Copy full SHA for e19beb7
typings/index.d.ts
@@ -4,7 +4,7 @@ type AsyncChildren<T> = ((state: AsyncState<T>) => React.ReactNode) | React.Reac
4
5
interface AsyncProps<T> {
6
promiseFn?: (props: object) => Promise<T>
7
- deferFn?: (...args) => Promise<T>
+ deferFn?: (...args: any[]) => Promise<T>
8
watch?: any
9
initialValue?: T
10
onResolve?: (data: T) => void
@@ -20,7 +20,7 @@ interface AsyncState<T> {
20
startedAt?: Date
21
finishedAt?: Date
22
cancel: () => void
23
- run: (...args) => Promise<T>
+ run: (...args: any[]) => Promise<T>
24
reload: () => void
25
setData: (data: T, callback?: () => void) => T
26
setError: (error: Error, callback?: () => void) => Error
0 commit comments