From ca53e5699a7123fcbcbbaaebcf46554afe334c28 Mon Sep 17 00:00:00 2001 From: Alex Lockwood Date: Thu, 20 Apr 2017 17:50:09 -0400 Subject: [PATCH] Add support for ReadonlyArray to chain() method (#15892) * Add support for ReadonlyArray to chain() method * Update index.d.ts * Made plant method ReadonlyArray-aware as well * Update index.d.ts --- types/lodash/index.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/types/lodash/index.d.ts b/types/lodash/index.d.ts index 6412570fc7..22b2d6b9e1 100644 --- a/types/lodash/index.d.ts +++ b/types/lodash/index.d.ts @@ -5909,6 +5909,7 @@ declare namespace _ { chain(value: string): LoDashExplicitWrapper; chain(value: boolean): LoDashExplicitWrapper; chain(value: T[]): LoDashExplicitArrayWrapper; + chain(value: ReadonlyArray): LoDashExplicitArrayWrapper; chain(value: T): LoDashExplicitObjectWrapper; chain(value: any): LoDashExplicitWrapper; } @@ -6135,6 +6136,11 @@ declare namespace _ { * @see _.plant */ plant(value: T[]): LoDashImplicitArrayWrapper; + + /** + * @see _.plant + */ + plant(value: ReadonlyArray): LoDashImplicitArrayWrapper; /** * @see _.plant @@ -6172,6 +6178,11 @@ declare namespace _ { * @see _.plant */ plant(value: T[]): LoDashExplicitArrayWrapper; + + /** + * @see _.plant + */ + plant(value: ReadonlyArray): LoDashExplicitArrayWrapper; /** * @see _.plant