From 3d46301f55a4f5aaa1aa84606de974c5594a74da Mon Sep 17 00:00:00 2001 From: Georgii Dolzhykov Date: Mon, 5 Feb 2018 02:09:50 +0200 Subject: [PATCH] lodash: support `ReadonlyArray` for specifying property names Closes #23278 --- types/lodash/common/common.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/lodash/common/common.d.ts b/types/lodash/common/common.d.ts index 4956ca2ae0..5af72d2440 100644 --- a/types/lodash/common/common.d.ts +++ b/types/lodash/common/common.d.ts @@ -2,7 +2,7 @@ import _ = require("../index"); type GlobalPartial = Partial; declare module "../index" { type PartialObject = GlobalPartial; - type Many = T | T[]; + type Many = T | ReadonlyArray; interface LoDashStatic { /** * Creates a lodash object which wraps value to enable implicit method chain sequences. @@ -252,4 +252,4 @@ declare module "../index" { type LoDashExplicitNillableObjectWrapper = LoDashExplicitWrapper; type LoDashExplicitNumberArrayWrapper = LoDashExplicitWrapper; type LoDashExplicitStringWrapper = LoDashExplicitWrapper; -} \ No newline at end of file +}