Skip to content

Commit 3e8c80c

Browse files
authored
add {default: React.ComponentType<P>}
1 parent 94fc382 commit 3e8c80c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as React from 'react';
44
* The configuration for an asynchronous component.
55
*/
66
export interface Configuration<P> {
7-
resolve: () => Promise<React.ComponentType<P>>;
7+
resolve: () => Promise<React.ComponentType<P> | {default: React.ComponentType<P>}>;
88
LoadingComponent?: (props: P) => JSX.Element;
99
ErrorComponent?: (props: P & { error: Error }) => JSX.Element;
1010
name?: string;

0 commit comments

Comments
 (0)