File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import * as React from 'react';
44 * The configuration for an asynchronous component.
55 */
66export interface Configuration < P > {
7- resolve : ( ) => Promise < React . Component < P > > ;
7+ resolve : ( ) => Promise < React . ComponentType < P > > ;
88 LoadingComponent ?: ( props : P ) => JSX . Element ;
99 ErrorComponent ?: ( props : P & { error : Error } ) => JSX . Element ;
1010 name ?: string ;
@@ -40,7 +40,7 @@ export interface Context {
4040 *
4141 * @param config The configuration to use for the asynchronous component.
4242 */
43- export function asyncComponent < T extends React . Component < P > , P > ( config : Configuration < P > ) : React . ComponentClass < P > ;
43+ export function asyncComponent < P > ( config : Configuration < P > ) : React . ComponentType < P > ;
4444
4545/**
4646 * Create a context for the asynchronous component resolving module.
You can’t perform that action at this time.
0 commit comments