We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94fc382 + 3e8c80c commit e767d99Copy full SHA for e767d99
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