@types/lodash 3.10.4 → 3.10.6

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: Thu, 25 May 2023 20:34:25 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `_`
14
14
 
lodash v3.10/index.d.ts CHANGED
@@ -4190,7 +4190,7 @@ declare namespace _ {
4190
4190
  *
4191
4191
  * @param value The value to provide to interceptor.
4192
4192
  * @param interceptor The function to invoke.
4193
- * @parem thisArg The this binding of interceptor.
4193
+ * @param thisArg The this binding of interceptor.
4194
4194
  * @return Returns value.
4195
4195
  **/
4196
4196
  tap<T>(
@@ -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
 
@@ -11344,7 +11350,7 @@ declare namespace _ {
11344
11350
  * Checks if value is a native function.
11345
11351
  * @param value The value to check.
11346
11352
  *
11347
- * @retrun Returns true if value is a native function, else false.
11353
+ * @return Returns true if value is a native function, else false.
11348
11354
  */
11349
11355
  isNative(value: any): value is Function;
11350
11356
  }
@@ -14749,7 +14755,7 @@ declare namespace _ {
14749
14755
  * Splits string by separator.
14750
14756
  *
14751
14757
  * Note: This method is based on String#split.
14752
- *
14758
+ *
14753
14759
  * @param separator The separator pattern to split by.
14754
14760
  * @param limit The length to truncate results to.
14755
14761
  * @return Returns the new array with the terms splitted.
@@ -15107,7 +15113,7 @@ declare namespace _ {
15107
15113
  *
15108
15114
  * @param func The value to convert to a callback.
15109
15115
  * @param thisArg The this binding of func.
15110
- * @result Returns the callback.
15116
+ * @return Returns the callback.
15111
15117
  */
15112
15118
  callback<TResult>(
15113
15119
  func: Function,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "3.10.4",
3
+ "version": "3.10.6",
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": "183bf9d0dcbf864c67567168500832bb5c035d7eca2bffe93f8c5c2d9869822c",
29
+ "typeScriptVersion": "4.3"
30
30
  }