@types/lodash 4.14.136 → 4.14.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
lodash/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Lo-Dash (https://lodash.com).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash
9
9
 
10
10
  Additional Details
11
- * Last updated: Mon, 08 Jul 2019 17:01:52 GMT
11
+ * Last updated: Fri, 16 Aug 2019 18:31:26 GMT
12
12
  * Dependencies: none
13
13
  * Global values: _
14
14
 
lodash/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "4.14.136",
3
+ "version": "4.14.137",
4
4
  "description": "TypeScript definitions for Lo-Dash",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -66,6 +66,6 @@
66
66
  },
67
67
  "scripts": {},
68
68
  "dependencies": {},
69
- "typesPublisherContentHash": "49e57de9b1c4abec20efef9e4801bfc90a748adc96d2e58ee947a3874cd4d552",
69
+ "typesPublisherContentHash": "0532928c6f7101c4efccf740285d632a206f5dedc4a3508c352609bc7df86ff7",
70
70
  "typeScriptVersion": "2.8"
71
71
  }
@@ -488,6 +488,7 @@ declare module "../index" {
488
488
  */
489
489
  flatten(): T extends Many<infer U> ? CollectionChain<U> : CollectionChain<T>;
490
490
  }
491
+ type Flat<T> = (T extends List<any> ? never : T);
491
492
  interface LoDashStatic {
492
493
  /**
493
494
  * Recursively flattens a nested array.
@@ -495,19 +496,19 @@ declare module "../index" {
495
496
  * @param array The array to recursively flatten.
496
497
  * @return Returns the new flattened array.
497
498
  */
498
- flattenDeep<T>(array: ListOfRecursiveArraysOrValues<T> | null | undefined): T[];
499
+ flattenDeep<T>(array: ListOfRecursiveArraysOrValues<T> | null | undefined): Array<Flat<T>>;
499
500
  }
500
501
  interface Collection<T> {
501
502
  /**
502
503
  * @see _.flattenDeep
503
504
  */
504
- flattenDeep(): Collection<T>;
505
+ flattenDeep(): T extends ListOfRecursiveArraysOrValues<infer U> ? Collection<Flat<U>> : Collection<T>;
505
506
  }
506
507
  interface CollectionChain<T> {
507
508
  /**
508
509
  * @see _.flattenDeep
509
510
  */
510
- flattenDeep(): CollectionChain<T>;
511
+ flattenDeep(): T extends ListOfRecursiveArraysOrValues<infer U> ? CollectionChain<Flat<U>> : CollectionChain<T>;
511
512
  }
512
513
  interface LoDashStatic {
513
514
  /**