mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
react-loadable fix webpack/node.js compatibility (#39033)
* Update index.d.ts According to webpack types https://github.com/DefinitelyTyped/DefinitelyTyped/blob/f58986ca20210f8e6612942db077b9228740a315/types/webpack-env/index.d.ts#L44 this returns array of strings in node.js and array of numbers in webpack. * Update index.d.ts use Array for non simple types
This commit is contained in:
committed by
Andrew Branch
parent
47659c6960
commit
4b598f5dc9
Vendored
+1
-1
@@ -66,7 +66,7 @@ declare namespace LoadableExport {
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
webpack?: () => number[];
|
||||
webpack?: () => Array<string | number>;
|
||||
}
|
||||
|
||||
interface OptionsWithoutRender<Props> extends CommonOptions {
|
||||
|
||||
Reference in New Issue
Block a user