File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,13 @@ interface AsyncState<T> {
26
26
setError : ( error : Error , callback ?: ( ) => void ) => Error
27
27
}
28
28
29
- declare class Async < T > extends React . Component < AsyncProps < T > , AsyncState < T > > {
30
- static Pending : React . FunctionComponent < { children ?: AsyncChildren < T > ; persist ?: boolean } >
31
- static Loading : React . FunctionComponent < { children ?: AsyncChildren < T > ; initial ?: boolean } >
32
- static Resolved : React . FunctionComponent < { children ?: AsyncChildren < T > ; persist ?: boolean } >
33
- static Rejected : React . FunctionComponent < { children ?: AsyncChildren < T > ; persist ?: boolean } >
29
+ declare class Async < T > extends React . Component < AsyncProps < T > , AsyncState < T > > { }
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 } >
34
36
}
35
37
36
38
declare function createInstance < T > ( defaultProps ?: AsyncProps < T > ) : Async < T >
You can’t perform that action at this time.
0 commit comments