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