@types/lodash 4.17.15 → 4.17.17
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 +5 -5
- lodash/common/string.d.ts +3 -3
- lodash/fp.d.ts +10 -10
- 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: Tue,
|
|
11
|
+
* Last updated: Tue, 20 May 2025 18:03:15 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
lodash/common/array.d.ts
CHANGED
|
@@ -760,15 +760,15 @@ declare module "../index" {
|
|
|
760
760
|
* _.intersectionWith(objects, others, _.isEqual);
|
|
761
761
|
* // => [{ 'x': 1, 'y': 2 }]
|
|
762
762
|
*/
|
|
763
|
-
intersectionWith<T1, T2>(array: List<T1> | null | undefined, values: List<T2>, comparator: Comparator2<T1, T2>): T1[];
|
|
763
|
+
intersectionWith<T1, T2>(array: List<T1> | null | undefined, values: List<T2>, comparator: Comparator2<T1, T1 | T2>): T1[];
|
|
764
764
|
/**
|
|
765
765
|
* @see _.intersectionWith
|
|
766
766
|
*/
|
|
767
|
-
intersectionWith<T1, T2, T3>(array: List<T1> | null | undefined, values1: List<T2>, values2: List<T3>, comparator: Comparator2<T1, T2 | T3>): T1[];
|
|
767
|
+
intersectionWith<T1, T2, T3>(array: List<T1> | null | undefined, values1: List<T2>, values2: List<T3>, comparator: Comparator2<T1, T1 | T2 | T3>): T1[];
|
|
768
768
|
/**
|
|
769
769
|
* @see _.intersectionWith
|
|
770
770
|
*/
|
|
771
|
-
intersectionWith<T1, T2, T3, T4>(array: List<T1> | null | undefined, values1: List<T2>, values2: List<T3>, ...values: Array<List<T4> | Comparator2<T1, T2 | T3 | T4>>): T1[];
|
|
771
|
+
intersectionWith<T1, T2, T3, T4>(array: List<T1> | null | undefined, values1: List<T2>, values2: List<T3>, ...values: Array<List<T4> | Comparator2<T1, T1 | T2 | T3 | T4>>): T1[];
|
|
772
772
|
/**
|
|
773
773
|
* @see _.intersectionWith
|
|
774
774
|
*/
|
|
@@ -778,7 +778,7 @@ declare module "../index" {
|
|
|
778
778
|
/**
|
|
779
779
|
* @see _.intersectionWith
|
|
780
780
|
*/
|
|
781
|
-
intersectionWith<T2>(values: List<T2>, comparator: Comparator2<T, T2>): Collection<T>;
|
|
781
|
+
intersectionWith<T2>(values: List<T2>, comparator: Comparator2<T, T | T2>): Collection<T>;
|
|
782
782
|
/**
|
|
783
783
|
* @see _.intersectionWith
|
|
784
784
|
*/
|
|
@@ -788,7 +788,7 @@ declare module "../index" {
|
|
|
788
788
|
/**
|
|
789
789
|
* @see _.intersectionWith
|
|
790
790
|
*/
|
|
791
|
-
intersectionWith<T2>(values: List<T2>, comparator: Comparator2<T, T2>): CollectionChain<T>;
|
|
791
|
+
intersectionWith<T2>(values: List<T2>, comparator: Comparator2<T, T | T2>): CollectionChain<T>;
|
|
792
792
|
/**
|
|
793
793
|
* @see _.intersectionWith
|
|
794
794
|
*/
|
lodash/common/string.d.ts
CHANGED
|
@@ -29,19 +29,19 @@ declare module "../index" {
|
|
|
29
29
|
* @param string The string to capitalize.
|
|
30
30
|
* @return Returns the capitalized string.
|
|
31
31
|
*/
|
|
32
|
-
capitalize<T extends string>(string?: T): Capitalize<Lowercase<T>>;
|
|
32
|
+
capitalize<T extends string>(string?: T): string extends T ? string : Capitalize<Lowercase<T>>;
|
|
33
33
|
}
|
|
34
34
|
interface LoDashImplicitWrapper<TValue> {
|
|
35
35
|
/**
|
|
36
36
|
* @see _.capitalize
|
|
37
37
|
*/
|
|
38
|
-
capitalize(): Capitalize<Lowercase<TValue extends string ? TValue : never>>;
|
|
38
|
+
capitalize(): string extends TValue ? string : Capitalize<Lowercase<TValue extends string ? TValue : never>>;
|
|
39
39
|
}
|
|
40
40
|
interface LoDashExplicitWrapper<TValue> {
|
|
41
41
|
/**
|
|
42
42
|
* @see _.capitalize
|
|
43
43
|
*/
|
|
44
|
-
capitalize(): StringChain<Capitalize<Lowercase<TValue extends string ? TValue : never>>>;
|
|
44
|
+
capitalize(): StringChain<string extends TValue ? string : Capitalize<Lowercase<TValue extends string ? TValue : never>>>;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
interface LoDashStatic {
|
lodash/fp.d.ts
CHANGED
|
@@ -240,7 +240,7 @@ declare namespace _ {
|
|
|
240
240
|
type LodashBindKey1x1 = (key: string) => (...args: any[]) => any;
|
|
241
241
|
type LodashBindKey1x2 = (object: object) => (...args: any[]) => any;
|
|
242
242
|
type LodashCamelCase = (string: string) => string;
|
|
243
|
-
type LodashCapitalize = <T extends string>(string: T) => Capitalize<Lowercase<T>>;
|
|
243
|
+
type LodashCapitalize = <T extends string>(string: T) => string extends T ? string : Capitalize<Lowercase<T>>;
|
|
244
244
|
type LodashCastArray = <T>(value: lodash.Many<T>) => T[];
|
|
245
245
|
type LodashCeil = (n: number) => number;
|
|
246
246
|
interface LodashChunk {
|
|
@@ -1776,13 +1776,13 @@ declare namespace _ {
|
|
|
1776
1776
|
type LodashIntersectionBy1x5<T1> = (array: lodash.List<T1> | null) => T1[];
|
|
1777
1777
|
type LodashIntersectionBy1x6<T1, T2> = (iteratee: lodash.ValueIteratee<T1 | T2>) => T1[];
|
|
1778
1778
|
interface LodashIntersectionWith {
|
|
1779
|
-
<T1, T2>(comparator: lodash.Comparator2<T1, T2>): LodashIntersectionWith1x1<T1, T2>;
|
|
1779
|
+
<T1, T2>(comparator: lodash.Comparator2<T1, T1 | T2>): LodashIntersectionWith1x1<T1, T2>;
|
|
1780
1780
|
<T1>(comparator: lodash.__, array: lodash.List<T1> | null | undefined): LodashIntersectionWith1x2<T1>;
|
|
1781
|
-
<T1, T2>(comparator: lodash.Comparator2<T1, T2>, array: lodash.List<T1> | null | undefined): LodashIntersectionWith1x3<T1, T2>;
|
|
1781
|
+
<T1, T2>(comparator: lodash.Comparator2<T1, T1 | T2>, array: lodash.List<T1> | null | undefined): LodashIntersectionWith1x3<T1, T2>;
|
|
1782
1782
|
<T2>(comparator: lodash.__, array: lodash.__, values: lodash.List<T2>): LodashIntersectionWith1x4<T2>;
|
|
1783
|
-
<T1, T2>(comparator: lodash.Comparator2<T1, T2>, array: lodash.__, values: lodash.List<T2>): LodashIntersectionWith1x5<T1>;
|
|
1783
|
+
<T1, T2>(comparator: lodash.Comparator2<T1, T1 | T2>, array: lodash.__, values: lodash.List<T2>): LodashIntersectionWith1x5<T1>;
|
|
1784
1784
|
<T1, T2>(comparator: lodash.__, array: lodash.List<T1> | null | undefined, values: lodash.List<T2>): LodashIntersectionWith1x6<T1, T2>;
|
|
1785
|
-
<T1, T2>(comparator: lodash.Comparator2<T1, T2>, array: lodash.List<T1> | null | undefined, values: lodash.List<T2>): T1[];
|
|
1785
|
+
<T1, T2>(comparator: lodash.Comparator2<T1, T1 | T2>, array: lodash.List<T1> | null | undefined, values: lodash.List<T2>): T1[];
|
|
1786
1786
|
}
|
|
1787
1787
|
interface LodashIntersectionWith1x1<T1, T2> {
|
|
1788
1788
|
(array: lodash.List<T1> | null | undefined): LodashIntersectionWith1x3<T1, T2>;
|
|
@@ -1790,18 +1790,18 @@ declare namespace _ {
|
|
|
1790
1790
|
(array: lodash.List<T1> | null | undefined, values: lodash.List<T2>): T1[];
|
|
1791
1791
|
}
|
|
1792
1792
|
interface LodashIntersectionWith1x2<T1> {
|
|
1793
|
-
<T2>(comparator: lodash.Comparator2<T1, T2>): LodashIntersectionWith1x3<T1, T2>;
|
|
1793
|
+
<T2>(comparator: lodash.Comparator2<T1, T1 | T2>): LodashIntersectionWith1x3<T1, T2>;
|
|
1794
1794
|
<T2>(comparator: lodash.__, values: lodash.List<T2>): LodashIntersectionWith1x6<T1, T2>;
|
|
1795
|
-
<T2>(comparator: lodash.Comparator2<T1, T2>, values: lodash.List<T2>): T1[];
|
|
1795
|
+
<T2>(comparator: lodash.Comparator2<T1, T1 | T2>, values: lodash.List<T2>): T1[];
|
|
1796
1796
|
}
|
|
1797
1797
|
type LodashIntersectionWith1x3<T1, T2> = (values: lodash.List<T2>) => T1[];
|
|
1798
1798
|
interface LodashIntersectionWith1x4<T2> {
|
|
1799
|
-
<T1>(comparator: lodash.Comparator2<T1, T2>): LodashIntersectionWith1x5<T1>;
|
|
1799
|
+
<T1>(comparator: lodash.Comparator2<T1, T1 | T2>): LodashIntersectionWith1x5<T1>;
|
|
1800
1800
|
<T1>(comparator: lodash.__, array: lodash.List<T1> | null | undefined): LodashIntersectionWith1x6<T1, T2>;
|
|
1801
|
-
<T1>(comparator: lodash.Comparator2<T1, T2>, array: lodash.List<T1> | null | undefined): T1[];
|
|
1801
|
+
<T1>(comparator: lodash.Comparator2<T1, T1 | T2>, array: lodash.List<T1> | null | undefined): T1[];
|
|
1802
1802
|
}
|
|
1803
1803
|
type LodashIntersectionWith1x5<T1> = (array: lodash.List<T1> | null | undefined) => T1[];
|
|
1804
|
-
type LodashIntersectionWith1x6<T1, T2> = (comparator: lodash.Comparator2<T1, T2>) => T1[];
|
|
1804
|
+
type LodashIntersectionWith1x6<T1, T2> = (comparator: lodash.Comparator2<T1, T1 | T2>) => T1[];
|
|
1805
1805
|
type LodashInvert = (object: object) => lodash.Dictionary<string>;
|
|
1806
1806
|
interface LodashInvertBy {
|
|
1807
1807
|
<T>(interatee: lodash.ValueIteratee<T>): LodashInvertBy1x1<T>;
|
lodash/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/lodash",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.17",
|
|
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": "81ab89b6410e58e49431522c43180d313e8d933b3579861c67939db949594e82",
|
|
55
|
+
"typeScriptVersion": "5.1"
|
|
56
56
|
}
|