From 4b598f5dc921773a53c9b129b2da2daeb6dcc501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=C4=9Bzslav=20Ackermann=20Ferko?= Date: Mon, 14 Oct 2019 21:07:14 +0200 Subject: [PATCH] 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 --- types/react-loadable/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-loadable/index.d.ts b/types/react-loadable/index.d.ts index 2e38f58c39..b499eb4b21 100644 --- a/types/react-loadable/index.d.ts +++ b/types/react-loadable/index.d.ts @@ -66,7 +66,7 @@ declare namespace LoadableExport { * }); * ``` */ - webpack?: () => number[]; + webpack?: () => Array; } interface OptionsWithoutRender extends CommonOptions {