diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index cd84de417..709151f16 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -247,9 +247,10 @@ result = >_.flatten([1, [2], [[3]]], true); result = >_.flatten([1, [2], [3, [[4]]]], true); result = >_.flatten([1, [2], [3, [[false]]]], true); -result = <_.LoDashArrayWrapper>_([1, [2], [3, [[4]]]]).flatten(); +result = <_.LoDashArrayWrapper>_([[1, 2], [3, 4], 5, 6]).flatten(); +result = <_.LoDashArrayWrapper>>>_([1, [2], [3, [[4]]]]).flatten(); + result = <_.LoDashArrayWrapper>_([1, [2], [3, [[4]]]]).flatten(true); -result = <_.LoDashArrayWrapper>_(stoogesQuotes).flatten('quotes'); result = _.indexOf([1, 2, 3, 1, 2, 3], 2); result = _.indexOf([1, 2, 3, 1, 2, 3], 2, 3); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 8c265cb8f..c0f0bd5d5 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -795,50 +795,14 @@ declare module _ { interface LoDashArrayWrapper { /** - * @see _.flatten - **/ - flatten(isShallow?: boolean): LoDashArrayWrapper; + * @see _.flatten + **/ + flatten(): LoDashArrayWrapper; /** * @see _.flatten **/ - flatten( - isShallow: boolean, - callback: ListIterator, - thisArg?: any): LoDashArrayWrapper; - - /** - * @see _.flatten - **/ - flatten( - callback: ListIterator, - thisArg?: any): LoDashArrayWrapper; - - /** - * @see _.flatten - **/ - flatten( - isShallow: boolean, - pluckValue: string): LoDashArrayWrapper; - - /** - * @see _.flatten - **/ - flatten( - pluckValue: string): LoDashArrayWrapper; - - /** - * @see _.flatten - **/ - flatten( - isShallow: boolean, - whereValue: W): LoDashArrayWrapper; - - /** - * @see _.flatten - **/ - flatten( - whereValue: W): LoDashArrayWrapper; + flatten(isShallow: boolean): LoDashArrayWrapper; } //_.indexOf