Skip to content

Commit abe48cd

Browse files
committed
Fix typings.
1 parent 1a5707f commit abe48cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

typings/index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ interface AsyncState<T> {
2626
setError: (error: Error, callback?: () => void) => Error
2727
}
2828

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 }>
3434
}
3535

36-
function createInstance<T>(defaultProps?: AsyncProps<T> = {}): Async<T>
36+
declare function createInstance<T>(defaultProps?: AsyncProps<T>): Async<T>
3737

3838
export default createInstance

0 commit comments

Comments
 (0)