@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 +1 -1
- lodash/common/lang.d.ts +2 -1
- lodash/common/util.d.ts +2 -1
- lodash/fp.d.ts +4 -1
- lodash/package.json +3 -3
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:
|
|
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
|
|
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<
|
|
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
|
-
|
|
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.
|
|
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": "
|
|
64
|
-
"typeScriptVersion": "3.
|
|
63
|
+
"typesPublisherContentHash": "866f70e18f129356be318f5ed741df1d7045aed3ba2063f3c44809f9015d1059",
|
|
64
|
+
"typeScriptVersion": "3.9"
|
|
65
65
|
}
|