@types/lodash 4.17.20 → 4.17.21
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/array.d.ts +1 -0
- lodash/common/math.d.ts +2 -0
- lodash/fp.d.ts +16 -4
- lodash/package.json +3 -3
lodash/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for lodash (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: Sat, 22 Nov 2025 15:33:02 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
lodash/common/array.d.ts
CHANGED
|
@@ -849,6 +849,7 @@ declare module "../index" {
|
|
|
849
849
|
* @param array The array to query.
|
|
850
850
|
* @return Returns the last element of array.
|
|
851
851
|
*/
|
|
852
|
+
last<T>(array: readonly [...unknown[], T]): T;
|
|
852
853
|
last<T>(array: List<T> | null | undefined): T | undefined;
|
|
853
854
|
}
|
|
854
855
|
interface Collection<T> {
|
lodash/common/math.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ declare module "../index" {
|
|
|
101
101
|
* @param array The array to iterate over.
|
|
102
102
|
* @returns Returns the maximum value.
|
|
103
103
|
*/
|
|
104
|
+
max<T>(collection: readonly [T, ...T[]]): T;
|
|
104
105
|
max<T>(collection: List<T> | null | undefined): T | undefined;
|
|
105
106
|
}
|
|
106
107
|
interface Collection<T> {
|
|
@@ -216,6 +217,7 @@ declare module "../index" {
|
|
|
216
217
|
* @param array The array to iterate over.
|
|
217
218
|
* @returns Returns the minimum value.
|
|
218
219
|
*/
|
|
220
|
+
min<T>(collection: readonly [T, ...T[]]): T;
|
|
219
221
|
min<T>(collection: List<T> | null | undefined): T | undefined;
|
|
220
222
|
}
|
|
221
223
|
interface Collection<T> {
|
lodash/fp.d.ts
CHANGED
|
@@ -1169,7 +1169,10 @@ declare namespace _ {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
type LodashFindLastKey1x1<T> = (object: object | null | undefined) => string | undefined;
|
|
1171
1171
|
type LodashFindLastKey1x2<T> = (predicate: lodash.ValueIteratee<T[keyof T]>) => string | undefined;
|
|
1172
|
-
|
|
1172
|
+
interface LodashHead {
|
|
1173
|
+
<T>(array: readonly [T, ...unknown[]]): T;
|
|
1174
|
+
<T>(array: lodash.List<T> | null | undefined): T | undefined;
|
|
1175
|
+
}
|
|
1173
1176
|
interface LodashFlatMap {
|
|
1174
1177
|
<T, TResult>(iteratee: (value: T) => lodash.Many<TResult>): LodashFlatMap1x1<T, TResult>;
|
|
1175
1178
|
<T>(iteratee: lodash.__, collection: lodash.List<T> | null | undefined): LodashFlatMap1x2<T>;
|
|
@@ -2030,7 +2033,10 @@ declare namespace _ {
|
|
|
2030
2033
|
type LodashKebabCase = (string: string) => string;
|
|
2031
2034
|
type LodashKeys = (object: any) => string[];
|
|
2032
2035
|
type LodashKeysIn = (object: any) => string[];
|
|
2033
|
-
|
|
2036
|
+
interface LodashLast {
|
|
2037
|
+
<T>(array: readonly [...unknown[], T]): T;
|
|
2038
|
+
<T>(array: lodash.List<T> | null | undefined): T | undefined;
|
|
2039
|
+
}
|
|
2034
2040
|
interface LodashLastIndexOf {
|
|
2035
2041
|
<T>(value: T): LodashLastIndexOf1x1<T>;
|
|
2036
2042
|
<T>(value: lodash.__, array: lodash.List<T> | null | undefined): LodashLastIndexOf1x2<T>;
|
|
@@ -2167,7 +2173,10 @@ declare namespace _ {
|
|
|
2167
2173
|
}
|
|
2168
2174
|
type LodashMatchesProperty1x1 = <T>(srcValue: T) => (value: any) => boolean;
|
|
2169
2175
|
type LodashMatchesProperty1x2 = (path: lodash.PropertyPath) => (value: any) => boolean;
|
|
2170
|
-
|
|
2176
|
+
interface LodashMax {
|
|
2177
|
+
<T>(collection: readonly [T, ...T[]]): T;
|
|
2178
|
+
<T>(collection: lodash.List<T> | null | undefined): T | undefined;
|
|
2179
|
+
}
|
|
2171
2180
|
interface LodashMaxBy {
|
|
2172
2181
|
<T>(iteratee: lodash.ValueIteratee<T>): LodashMaxBy1x1<T>;
|
|
2173
2182
|
<T>(iteratee: lodash.__, collection: lodash.List<T> | null | undefined): LodashMaxBy1x2<T>;
|
|
@@ -2234,7 +2243,10 @@ declare namespace _ {
|
|
|
2234
2243
|
type LodashMergeWith1x6<TObject, TSource> = (customizer: lodash.MergeWithCustomizer) => TObject & TSource;
|
|
2235
2244
|
type LodashMethod = (path: lodash.PropertyPath) => (object: any) => any;
|
|
2236
2245
|
type LodashMethodOf = (object: object) => (path: lodash.PropertyPath) => any;
|
|
2237
|
-
|
|
2246
|
+
interface LodashMin {
|
|
2247
|
+
<T>(collection: readonly [T, ...T[]]): T;
|
|
2248
|
+
<T>(collection: lodash.List<T> | null | undefined): T | undefined;
|
|
2249
|
+
}
|
|
2238
2250
|
interface LodashMinBy {
|
|
2239
2251
|
<T>(iteratee: lodash.ValueIteratee<T>): LodashMinBy1x1<T>;
|
|
2240
2252
|
<T>(iteratee: lodash.__, collection: lodash.List<T> | null | undefined): LodashMinBy1x2<T>;
|
lodash/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/lodash",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.21",
|
|
4
4
|
"description": "TypeScript definitions for lodash",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash",
|
|
6
6
|
"license": "MIT",
|
|
@@ -51,6 +51,6 @@
|
|
|
51
51
|
"scripts": {},
|
|
52
52
|
"dependencies": {},
|
|
53
53
|
"peerDependencies": {},
|
|
54
|
-
"typesPublisherContentHash": "
|
|
55
|
-
"typeScriptVersion": "5.
|
|
54
|
+
"typesPublisherContentHash": "262ec0cf23acf06f09c8d1c50a22c7fb7947e11fcaefe36187c657c5f438e04c",
|
|
55
|
+
"typeScriptVersion": "5.2"
|
|
56
56
|
}
|