We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 871b384 + 15ab385 commit 2c0dc18Copy full SHA for 2c0dc18
src/async.d.ts
@@ -5,15 +5,15 @@ export interface Props<T> {
5
before?: (handlePromise: () => void) => React.ReactNode
6
then?: (value: T) => React.ReactNode
7
catch?: (err: any) => React.ReactNode
8
- pending?: () => React.ReactNode | React.ReactNode
+ pending?: (() => React.ReactNode) | React.ReactNode
9
}
10
11
export interface State {
12
status: 'none' | 'pending' | 'resolved' | 'rejected'
13
14
15
declare class Async<T> extends React.Component<Props<T>, State> {
16
- defaultPending: () => React.ReactNode | React.ReactNode
+ static defaultPending: (() => React.ReactNode) | React.ReactNode
17
18
19
export default Async
0 commit comments