From 19adbdc47a08a5ccbf14ab0901ff802ffde6100e Mon Sep 17 00:00:00 2001 From: csr632 <632882184@qq.com> Date: Sat, 18 Apr 2020 06:50:09 +0800 Subject: [PATCH] Don't hardcode module name in @types/lodash (#43684) This forbit us from doing `yarn add @types/lodash3@npm:@types/lodash@^3.0.0` and use `lodash3` as module name. --- types/lodash/v3/index.d.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/types/lodash/v3/index.d.ts b/types/lodash/v3/index.d.ts index aba8a60fe4..b3b409e89b 100644 --- a/types/lodash/v3/index.d.ts +++ b/types/lodash/v3/index.d.ts @@ -5,7 +5,7 @@ declare var _: _.LoDashStatic; -declare module _ { +declare namespace _ { interface LoDashStatic { /** * Creates a lodash object which wraps the given value to enable intuitive method chaining. @@ -15912,6 +15912,5 @@ declare module _ { } } -declare module "lodash" { - export = _; -} +export = _; +export as namespace _;