File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ interface AsyncState<T> {
28
28
29
29
declare class Async < T > extends React . Component < AsyncProps < T > , AsyncState < T > > { }
30
30
31
- namespace Async {
32
- export const Pending : React . FunctionComponent < { children ?: AsyncChildren < T > ; persist ?: boolean } >
33
- export const Loading : React . FunctionComponent < { children ?: AsyncChildren < T > ; initial ?: boolean } >
34
- export const Resolved : React . FunctionComponent < { children ?: AsyncChildren < T > ; persist ?: boolean } >
35
- export const Rejected : React . FunctionComponent < { children ?: AsyncChildren < T > ; persist ?: boolean } >
31
+ declare namespace Async {
32
+ export function Pending < T > ( props : { children ?: AsyncChildren < T > ; persist ?: boolean } ) : React . ReactNode
33
+ export function Loading < T > ( props : { children ?: AsyncChildren < T > ; initial ?: boolean } ) : React . ReactNode
34
+ export function Resolved < T > ( props : { children ?: AsyncChildren < T > ; persist ?: boolean } ) : React . ReactNode
35
+ export function Rejected < T > ( props : { children ?: AsyncChildren < T > ; persist ?: boolean } ) : React . ReactNode
36
36
}
37
37
38
38
declare function createInstance < T > ( defaultProps ?: AsyncProps < T > ) : Async < T >
You can’t perform that action at this time.
0 commit comments