| 4 | * The configuration for an asynchronous component. |
| 5 | */ |
| 6 | export interface Configuration<P> { |
| 7 | 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; |
| 11 | autoResolveES2015Default?: boolean; |
| 12 | env?: 'node' | 'browser'; |
| 13 | serverMode?: 'resolve' | 'defer' | 'boundary'; |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * A wrapper to provide the asynchronous component resolving in a React tree. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…