@types/lodash 4.14.179 → 4.14.180

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: Fri, 25 Feb 2022 23:01:49 GMT
11
+ * Last updated: Mon, 14 Mar 2022 19:31:43 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `_`
14
14
 
lodash/common/lang.d.ts CHANGED
@@ -220,7 +220,8 @@ declare module "../index" {
220
220
  */
221
221
  conformsTo(source: ConformsPredicateObject<TValue>): PrimitiveChain<boolean>;
222
222
  }
223
- type CondPair<T, R> = [(val: T) => boolean, (val: T) => R];
223
+ type CondPairNullary<R> = [() => boolean, () => R];
224
+ type CondPairUnary<T, R> = [(val: T) => boolean, (val: T) => R];
224
225
  interface LoDashStatic {
225
226
  /**
226
227
  * Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
lodash/common/util.d.ts CHANGED
@@ -79,7 +79,8 @@ declare module "../index" {
79
79
  * func({ 'a': '1', 'b': '2' });
80
80
  * // => 'no match'
81
81
  */
82
- cond<T, R>(pairs: Array<CondPair<T, R>>): (Target: T) => R;
82
+ cond<R>(pairs: Array<CondPairNullary<R>>): () => R;
83
+ cond<T, R>(pairs: Array<CondPairUnary<T, R>>): (Target: T) => R;
83
84
  }
84
85
 
85
86
  type ConformsPredicateObject<T> = {
lodash/fp.d.ts CHANGED
@@ -317,7 +317,10 @@ declare namespace _ {
317
317
  }
318
318
  type LodashConcat1x1<T> = (values: lodash.Many<T>) => T[];
319
319
  type LodashConcat1x2<T> = (array: lodash.Many<T>) => T[];
320
- type LodashCond = <T, R>(pairs: Array<lodash.CondPair<T, R>>) => (Target: T) => R;
320
+ interface LodashCond {
321
+ <R>(pairs: Array<lodash.CondPairNullary<R>>): () => R;
322
+ <T, R>(pairs: Array<lodash.CondPairUnary<T, R>>): (Target: T) => R;
323
+ }
321
324
  interface LodashConformsTo {
322
325
  <T>(source: lodash.ConformsPredicateObject<T>): LodashConformsTo1x1<T>;
323
326
  <T>(source: lodash.__, object: T): LodashConformsTo1x2<T>;
lodash/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "4.14.179",
3
+ "version": "4.14.180",
4
4
  "description": "TypeScript definitions for Lo-Dash",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash",
6
6
  "license": "MIT",
@@ -60,6 +60,6 @@
60
60
  },
61
61
  "scripts": {},
62
62
  "dependencies": {},
63
- "typesPublisherContentHash": "277bd17a5991f502cf2c534801f3a59fe322476500d195a137df5e62a5bfc5e8",
64
- "typeScriptVersion": "3.8"
63
+ "typesPublisherContentHash": "866f70e18f129356be318f5ed741df1d7045aed3ba2063f3c44809f9015d1059",
64
+ "typeScriptVersion": "3.9"
65
65
  }