Skip to content

Commit

Permalink
Update typings to include AbortController.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Jan 2, 2019
1 parent 0728bf5 commit 21e3c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -4,7 +4,7 @@ type AsyncChildren<T> = ((state: AsyncState<T>) => React.ReactNode) | React.Reac
type PromiseFn<T> = (props: object) => Promise<T>

interface AsyncProps<T> {
promiseFn?: (props: object) => Promise<T>
promiseFn?: (props: object, controller: AbortController) => Promise<T>
deferFn?: (...args: any[]) => Promise<T>
watch?: any
initialValue?: T
Expand Down

0 comments on commit 21e3c6e

Please sign in to comment.