mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-26 11:12:19 +08:00
Merge pull request #5319 from pimterry/lodash-concat
Make lodash _().concat support its full auto-flattening API
This commit is contained in:
@@ -129,6 +129,7 @@ result = <_.LoDashObjectWrapper<_.Dictionary<string>>>_(<{ [index: string]: stri
|
||||
|
||||
//Wrapped array shortcut methods
|
||||
result = <_.LoDashArrayWrapper<number>>_([1, 2, 3, 4]).concat(5, 6);
|
||||
result = <_.LoDashArrayWrapper<number>>_([1, 2, 3, 4]).concat([5, 6]);
|
||||
result = <string>_([1, 2, 3, 4]).join(',');
|
||||
result = <number>_([1, 2, 3, 4]).pop();
|
||||
result = <_.LoDashArrayWrapper<number>>_([1, 2, 3, 4]).push(5, 6, 7);
|
||||
|
||||
Vendored
+1
-1
@@ -252,7 +252,7 @@ declare module _ {
|
||||
interface LoDashObjectWrapper<T> extends LoDashWrapperBase<T, LoDashObjectWrapper<T>> { }
|
||||
|
||||
interface LoDashArrayWrapper<T> extends LoDashWrapperBase<T[], LoDashArrayWrapper<T>> {
|
||||
concat(...items: T[]): LoDashArrayWrapper<T>;
|
||||
concat(...items: Array<T|Array<T>>): LoDashArrayWrapper<T>;
|
||||
join(seperator?: string): string;
|
||||
pop(): T;
|
||||
push(...items: T[]): LoDashArrayWrapper<T>;
|
||||
|
||||
Reference in New Issue
Block a user