diff --git a/typings/index.d.ts b/typings/index.d.ts index 9bbf58b8..82314ce0 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -4,7 +4,7 @@ type AsyncChildren = ((state: AsyncState) => React.ReactNode) | React.Reac interface AsyncProps { promiseFn?: (props: object) => Promise - deferFn?: (...args) => Promise + deferFn?: (...args: any[]) => Promise watch?: any initialValue?: T onResolve?: (data: T) => void @@ -20,7 +20,7 @@ interface AsyncState { startedAt?: Date finishedAt?: Date cancel: () => void - run: (...args) => Promise + run: (...args: any[]) => Promise reload: () => void setData: (data: T, callback?: () => void) => T setError: (error: Error, callback?: () => void) => Error