Skip to content

Commit e767d99

Browse files
authored
Merge pull request #76 from JounQin/patch-1
compatibility with autoResolveES2015Default
2 parents 94fc382 + 3e8c80c commit e767d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
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)