mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add support for ReadonlyArray<T> to chain() method (#15892)
* Add support for ReadonlyArray<T> to chain() method * Update index.d.ts * Made plant method ReadonlyArray-aware as well * Update index.d.ts
This commit is contained in:
parent
1ce0725a6c
commit
ca53e5699a
11
types/lodash/index.d.ts
vendored
11
types/lodash/index.d.ts
vendored
@ -5909,6 +5909,7 @@ declare namespace _ {
|
||||
chain(value: string): LoDashExplicitWrapper<string>;
|
||||
chain(value: boolean): LoDashExplicitWrapper<boolean>;
|
||||
chain<T>(value: T[]): LoDashExplicitArrayWrapper<T>;
|
||||
chain<T>(value: ReadonlyArray<T>): LoDashExplicitArrayWrapper<T>;
|
||||
chain<T extends {}>(value: T): LoDashExplicitObjectWrapper<T>;
|
||||
chain(value: any): LoDashExplicitWrapper<any>;
|
||||
}
|
||||
@ -6135,6 +6136,11 @@ declare namespace _ {
|
||||
* @see _.plant
|
||||
*/
|
||||
plant<T>(value: T[]): LoDashImplicitArrayWrapper<T>;
|
||||
|
||||
/**
|
||||
* @see _.plant
|
||||
*/
|
||||
plant<T>(value: ReadonlyArray<T>): LoDashImplicitArrayWrapper<T>;
|
||||
|
||||
/**
|
||||
* @see _.plant
|
||||
@ -6172,6 +6178,11 @@ declare namespace _ {
|
||||
* @see _.plant
|
||||
*/
|
||||
plant<T>(value: T[]): LoDashExplicitArrayWrapper<T>;
|
||||
|
||||
/**
|
||||
* @see _.plant
|
||||
*/
|
||||
plant<T>(value: ReadonlyArray<T>): LoDashExplicitArrayWrapper<T>;
|
||||
|
||||
/**
|
||||
* @see _.plant
|
||||
|
||||
Loading…
Reference in New Issue
Block a user