diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index f1772191cd..3396ea447a 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -2000,6 +2000,18 @@ declare module _ { flattenDeep(): LoDashExplicitArrayWrapper; } + // _.flattenDepth + interface LoDashStatic { + /** + * Recursively flatten array up to depth times. + * + * @param array The array to recursively flatten. + * @param number The maximum recursion depth. + * @return Returns the new flattened array. + */ + flattenDepth(array: ListOfRecursiveArraysOrValues, depth?: number): T[]; + } + //_.fromPairs interface LoDashStatic { /** @@ -19414,15 +19426,10 @@ declare module "lodash/flattenDeep" { export = flattenDeep; } -/** -* uncoment it if definition exists -*/ -/* declare module "lodash/flattenDepth" { const flattenDepth: typeof _.flattenDepth; export = flattenDepth; } -*/ declare module "lodash/flip" { const flip: typeof _.flip;