mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
react-loadable: Only default is a valid key by default
Having it be an indexed type prevents use with dynamic import.
This commit is contained in:
Vendored
+1
-1
@@ -44,7 +44,7 @@ export interface OptionsWithoutRender<Props> extends CommonOptions {
|
||||
*
|
||||
* Resulting React component receives all the props passed to the generated component.
|
||||
*/
|
||||
loader(): Promise<React.ComponentType<Props> | { [key: string]: React.ComponentType<Props> }>;
|
||||
loader(): Promise<React.ComponentType<Props> | { default: React.ComponentType<Props> }>;
|
||||
}
|
||||
|
||||
export interface OptionsWithRender<Props, Exports extends object> extends CommonOptions {
|
||||
|
||||
Reference in New Issue
Block a user