Skip to content

Commit 2c0dc18

Browse files
authoredJul 24, 2018
Merge pull request #28 from edwardaskew/master
Fix TypeScript typings
2 parents 871b384 + 15ab385 commit 2c0dc18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/async.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ export interface Props<T> {
55
before?: (handlePromise: () => void) => React.ReactNode
66
then?: (value: T) => React.ReactNode
77
catch?: (err: any) => React.ReactNode
8-
pending?: () => React.ReactNode | React.ReactNode
8+
pending?: (() => React.ReactNode) | React.ReactNode
99
}
1010

1111
export interface State {
1212
status: 'none' | 'pending' | 'resolved' | 'rejected'
1313
}
1414

1515
declare class Async<T> extends React.Component<Props<T>, State> {
16-
defaultPending: () => React.ReactNode | React.ReactNode
16+
static defaultPending: (() => React.ReactNode) | React.ReactNode
1717
}
1818

1919
export default Async

0 commit comments

Comments
 (0)
Please sign in to comment.