Skip to content

Commit 21e3c6e

Browse files
committed
Update typings to include AbortController.
1 parent 0728bf5 commit 21e3c6e

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
type PromiseFn<T> = (props: object) => Promise<T>
55

66
interface AsyncProps<T> {
7-
promiseFn?: (props: object) => Promise<T>
7+
promiseFn?: (props: object, controller: AbortController) => Promise<T>
88
deferFn?: (...args: any[]) => Promise<T>
99
watch?: any
1010
initialValue?: T

0 commit comments

Comments
 (0)