@types/lodash 4.14.181 → 4.14.184
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 +2 -2
- lodash/common/lang.d.ts +6 -0
- lodash/common/math.d.ts +1 -1
- lodash/common/string.d.ts +1 -1
- lodash/fp.d.ts +9 -1
- lodash/index.d.ts +6 -7
- lodash/package.json +3 -8
lodash/README.md
CHANGED
|
@@ -8,9 +8,9 @@ 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: Fri, 19 Aug 2022 04:32:26 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `_`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Brian Zengel](https://github.com/bczengel), [Ilya Mochalov](https://github.com/chrootsu), [
|
|
16
|
+
These definitions were written by [Brian Zengel](https://github.com/bczengel), [Ilya Mochalov](https://github.com/chrootsu), [AJ Richardson](https://github.com/aj-r), [e-cloud](https://github.com/e-cloud), [Georgii Dolzhykov](https://github.com/thorn0), [Jack Moore](https://github.com/jtmthf), [Dominique Rau](https://github.com/DomiR), and [William Chelman](https://github.com/WilliamChelman).
|
lodash/common/lang.d.ts
CHANGED
|
@@ -561,6 +561,8 @@ declare module "../index" {
|
|
|
561
561
|
isElement(): PrimitiveChain<boolean>;
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
+
type EmptyObject<T> = { [K in keyof T]?: never };
|
|
565
|
+
type EmptyObjectOf<T> = EmptyObject<T> extends T ? EmptyObject<T> : never;
|
|
564
566
|
interface LoDashStatic {
|
|
565
567
|
/**
|
|
566
568
|
* Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string, or
|
|
@@ -569,6 +571,10 @@ declare module "../index" {
|
|
|
569
571
|
* @param value The value to inspect.
|
|
570
572
|
* @return Returns true if value is empty, else false.
|
|
571
573
|
*/
|
|
574
|
+
isEmpty<T extends { __trapAny: any }>(value?: T): boolean;
|
|
575
|
+
isEmpty(value: string): value is '';
|
|
576
|
+
isEmpty(value: Map<any, any> | Set<any> | List<any> | null | undefined): boolean;
|
|
577
|
+
isEmpty<T extends object>(value: T | null | undefined): value is EmptyObjectOf<T> | null | undefined;
|
|
572
578
|
isEmpty(value?: any): boolean;
|
|
573
579
|
}
|
|
574
580
|
interface LoDashImplicitWrapper<TValue> {
|
lodash/common/math.d.ts
CHANGED
|
@@ -130,7 +130,7 @@ declare module "../index" {
|
|
|
130
130
|
*
|
|
131
131
|
* var objects = [{ 'n': 1 }, { 'n': 2 }];
|
|
132
132
|
*
|
|
133
|
-
* _.maxBy(objects, function(o) { return o.
|
|
133
|
+
* _.maxBy(objects, function(o) { return o.n; });
|
|
134
134
|
* // => { 'n': 2 }
|
|
135
135
|
*
|
|
136
136
|
* // using the `_.property` iteratee shorthand
|
lodash/common/string.d.ts
CHANGED
lodash/fp.d.ts
CHANGED
|
@@ -1922,7 +1922,15 @@ declare namespace _ {
|
|
|
1922
1922
|
type LodashIsBuffer = (value: any) => boolean;
|
|
1923
1923
|
type LodashIsDate = (value: any) => value is Date;
|
|
1924
1924
|
type LodashIsElement = (value: any) => boolean;
|
|
1925
|
-
|
|
1925
|
+
interface LodashIsEmpty {
|
|
1926
|
+
<T extends { __trapAny: any }>(value: T): boolean;
|
|
1927
|
+
(value: string | null | undefined): value is '' | null | undefined;
|
|
1928
|
+
(value: any[] | null | undefined): boolean;
|
|
1929
|
+
(value: ReadonlyArray<any> | null | undefined): value is Readonly<[]> | null | undefined;
|
|
1930
|
+
(value: Map<any, any> | Set<any> | lodash.List<any> | null | undefined): boolean;
|
|
1931
|
+
<T extends object>(value: T | null | undefined): value is lodash.EmptyObjectOf<T> | null | undefined;
|
|
1932
|
+
(value?: any): boolean;
|
|
1933
|
+
}
|
|
1926
1934
|
interface LodashIsEqualWith {
|
|
1927
1935
|
(customizer: lodash.IsEqualCustomizer): LodashIsEqualWith1x1;
|
|
1928
1936
|
(customizer: lodash.__, value: any): LodashIsEqualWith1x2;
|
lodash/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
// Type definitions for Lo-Dash 4.14
|
|
2
2
|
// Project: https://lodash.com
|
|
3
|
-
// Definitions by: Brian Zengel <https://github.com/bczengel
|
|
4
|
-
// Ilya Mochalov <https://github.com/chrootsu
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
// Jack Moore <https://github.com/jtmthf>,
|
|
3
|
+
// Definitions by: Brian Zengel <https://github.com/bczengel>
|
|
4
|
+
// Ilya Mochalov <https://github.com/chrootsu>
|
|
5
|
+
// AJ Richardson <https://github.com/aj-r>
|
|
6
|
+
// e-cloud <https://github.com/e-cloud>
|
|
7
|
+
// Georgii Dolzhykov <https://github.com/thorn0>
|
|
8
|
+
// Jack Moore <https://github.com/jtmthf>
|
|
10
9
|
// Dominique Rau <https://github.com/DomiR>
|
|
11
10
|
// William Chelman <https://github.com/WilliamChelman>
|
|
12
11
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
lodash/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/lodash",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.184",
|
|
4
4
|
"description": "TypeScript definitions for Lo-Dash",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,11 +15,6 @@
|
|
|
15
15
|
"url": "https://github.com/chrootsu",
|
|
16
16
|
"githubUsername": "chrootsu"
|
|
17
17
|
},
|
|
18
|
-
{
|
|
19
|
-
"name": "Stepan Mikhaylyuk",
|
|
20
|
-
"url": "https://github.com/stepancar",
|
|
21
|
-
"githubUsername": "stepancar"
|
|
22
|
-
},
|
|
23
18
|
{
|
|
24
19
|
"name": "AJ Richardson",
|
|
25
20
|
"url": "https://github.com/aj-r",
|
|
@@ -60,6 +55,6 @@
|
|
|
60
55
|
},
|
|
61
56
|
"scripts": {},
|
|
62
57
|
"dependencies": {},
|
|
63
|
-
"typesPublisherContentHash": "
|
|
64
|
-
"typeScriptVersion": "
|
|
58
|
+
"typesPublisherContentHash": "b205954c7111cfa96de31dd77c5ff4bb53712b1c48ca6339b50692062eed2085",
|
|
59
|
+
"typeScriptVersion": "4.0"
|
|
65
60
|
}
|