@types/lodash 4.14.197 → 4.14.198
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/collection.d.ts +4 -0
- lodash/fp.d.ts +1 -0
- lodash/package.json +2 -2
- lodash/pullAllBy.d.ts +0 -2
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: Tue, 05 Sep 2023 19:33:08 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `_`
|
|
14
14
|
|
lodash/common/collection.d.ts
CHANGED
|
@@ -1645,6 +1645,10 @@ declare module "../index" {
|
|
|
1645
1645
|
* @param collection The collection to sample.
|
|
1646
1646
|
* @return Returns the random element.
|
|
1647
1647
|
*/
|
|
1648
|
+
sample<T>(collection: readonly [T, ...T[]]): T;
|
|
1649
|
+
/**
|
|
1650
|
+
* @see _.sample
|
|
1651
|
+
*/
|
|
1648
1652
|
sample<T>(collection: Dictionary<T> | NumericDictionary<T> | null | undefined): T | undefined;
|
|
1649
1653
|
/**
|
|
1650
1654
|
* @see _.sample
|
lodash/fp.d.ts
CHANGED
|
@@ -3793,6 +3793,7 @@ declare namespace _ {
|
|
|
3793
3793
|
type LodashRound = (n: number) => number;
|
|
3794
3794
|
type LodashRunInContext = (context: object) => lodash.LoDashStatic;
|
|
3795
3795
|
interface LodashSample {
|
|
3796
|
+
<T>(collection: readonly [T, ...T[]]): T;
|
|
3796
3797
|
<T>(collection: lodash.Dictionary<T> | lodash.NumericDictionary<T> | null | undefined): T | undefined;
|
|
3797
3798
|
<T extends object>(collection: T | null | undefined): T[keyof T] | undefined;
|
|
3798
3799
|
}
|
lodash/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/lodash",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.198",
|
|
4
4
|
"description": "TypeScript definitions for Lo-Dash",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
},
|
|
56
56
|
"scripts": {},
|
|
57
57
|
"dependencies": {},
|
|
58
|
-
"typesPublisherContentHash": "
|
|
58
|
+
"typesPublisherContentHash": "f5a3d945b8f87ad615d40a020989b90134bb2412bc4d695240d131d65829c6bd",
|
|
59
59
|
"typeScriptVersion": "4.3"
|
|
60
60
|
}
|
lodash/pullAllBy.d.ts
CHANGED