@types/lodash 4.14.182 → 4.14.185
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 +6 -0
- lodash/common/math.d.ts +1 -1
- lodash/common/object.d.ts +3 -3
- lodash/common/string.d.ts +1 -1
- lodash/fp.d.ts +9 -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: Sun, 11 Sep 2022 10:02:42 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `_`
|
|
14
14
|
|
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/object.d.ts
CHANGED
|
@@ -2005,7 +2005,7 @@ declare module "../index" {
|
|
|
2005
2005
|
/**
|
|
2006
2006
|
* @see _.pick
|
|
2007
2007
|
*/
|
|
2008
|
-
pick<T>(object: T | null | undefined, ...props: PropertyPath
|
|
2008
|
+
pick<T>(object: T | null | undefined, ...props: Array<Many<PropertyPath>>): PartialObject<T>;
|
|
2009
2009
|
}
|
|
2010
2010
|
interface Object<T> {
|
|
2011
2011
|
/**
|
|
@@ -2015,7 +2015,7 @@ declare module "../index" {
|
|
|
2015
2015
|
/**
|
|
2016
2016
|
* @see _.pick
|
|
2017
2017
|
*/
|
|
2018
|
-
pick(...props: PropertyPath
|
|
2018
|
+
pick(...props: Array<Many<PropertyPath>>): Object<PartialObject<T>>;
|
|
2019
2019
|
}
|
|
2020
2020
|
interface ObjectChain<T> {
|
|
2021
2021
|
/**
|
|
@@ -2025,7 +2025,7 @@ declare module "../index" {
|
|
|
2025
2025
|
/**
|
|
2026
2026
|
* @see _.pick
|
|
2027
2027
|
*/
|
|
2028
|
-
pick(...props: PropertyPath
|
|
2028
|
+
pick(...props: Array<Many<PropertyPath>>): ObjectChain<PartialObject<T>>;
|
|
2029
2029
|
}
|
|
2030
2030
|
interface LoDashStatic {
|
|
2031
2031
|
/**
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/lodash",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.185",
|
|
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": "
|
|
59
|
-
"typeScriptVersion": "
|
|
58
|
+
"typesPublisherContentHash": "11778b532d98495cbbe3cd4403bdc978257877a7ea8d951491d5ae27e53879a7",
|
|
59
|
+
"typeScriptVersion": "4.1"
|
|
60
60
|
}
|