Skip to content

Commit

Permalink
Fix AsyncProps type (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
brabeji authored and ghengeveld committed Feb 2, 2019
1 parent 7271a7b commit 1c79637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from "react"
type AsyncChildren<T> = ((state: AsyncState<T>) => React.ReactNode) | React.ReactNode
type PromiseFn<T> = (props: object) => Promise<T>

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

0 comments on commit 1c79637

Please sign in to comment.