We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94fc382 commit 3e8c80cCopy full SHA for 3e8c80c
index.d.ts
@@ -4,7 +4,7 @@ import * as React from 'react';
4
* The configuration for an asynchronous component.
5
*/
6
export interface Configuration<P> {
7
- resolve: () => Promise<React.ComponentType<P>>;
+ resolve: () => Promise<React.ComponentType<P> | {default: React.ComponentType<P>}>;
8
LoadingComponent?: (props: P) => JSX.Element;
9
ErrorComponent?: (props: P & { error: Error }) => JSX.Element;
10
name?: string;
0 commit comments