@types/lodash 3.10.4 → 3.10.5

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 v3.10/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Lo-Dash (http://lodash.com/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash/v3.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 06 Jul 2021 22:02:57 GMT
11
+ * Last updated: Tue, 16 Aug 2022 19:02:42 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `_`
14
14
 
lodash v3.10/index.d.ts CHANGED
@@ -11127,6 +11127,8 @@ declare namespace _ {
11127
11127
  }
11128
11128
 
11129
11129
  //_.isEmpty
11130
+ type EmptyObject<T> = { [K in keyof T]?: never };
11131
+ type EmptyObjectOf<T> = EmptyObject<T> extends T ? EmptyObject<T> : never;
11130
11132
  interface LoDashStatic {
11131
11133
  /**
11132
11134
  * Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string, or
@@ -11135,6 +11137,10 @@ declare namespace _ {
11135
11137
  * @param value The value to inspect.
11136
11138
  * @return Returns true if value is empty, else false.
11137
11139
  */
11140
+ isEmpty<T extends { __trapAny: any }>(value?: T): boolean;
11141
+ isEmpty(value: string): value is '';
11142
+ isEmpty(value: Map<any, any> | Set<any> | List<any> | null | undefined): boolean;
11143
+ isEmpty<T extends object>(value: T | null | undefined): value is EmptyObjectOf<T> | null | undefined;
11138
11144
  isEmpty(value?: any): boolean;
11139
11145
  }
11140
11146
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "3.10.4",
3
+ "version": "3.10.5",
4
4
  "description": "TypeScript definitions for Lo-Dash",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash",
6
6
  "license": "MIT",
@@ -25,6 +25,6 @@
25
25
  },
26
26
  "scripts": {},
27
27
  "dependencies": {},
28
- "typesPublisherContentHash": "ad0e2367e41c0044888f35e9ea7c20538242b17b70fa00f552236b392cb4cea8",
29
- "typeScriptVersion": "3.6"
28
+ "typesPublisherContentHash": "023302063a56f20c2f398ab49ee72a24d2527001c3a991182aefd1c75c07389b",
29
+ "typeScriptVersion": "4.0"
30
30
  }