Skip to content

Commit 4e8ffa2

Browse files
committed
TypeScript doesn't support rest params before other arguments.
1 parent abe48cd commit 4e8ffa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type AsyncChildren<T> = ((state: AsyncState<T>) => React.ReactNode) | React.Reac
44

55
interface AsyncProps<T> {
66
promiseFn?: (props: object) => Promise<T>
7-
deferFn?: (...args, props: object) => Promise<T>
7+
deferFn?: (...args) => Promise<T>
88
watch?: any
99
initialValue?: T
1010
onResolve?: (data: T) => void

0 commit comments

Comments
 (0)