@types/lodash 4.14.155 → 4.14.159

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 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: Wed, 03 Jun 2020 15:24:03 GMT
11
+ * Last updated: Thu, 06 Aug 2020 00:37:52 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `_`
14
14
 
lodash/common/array.d.ts CHANGED
@@ -1128,7 +1128,7 @@ declare module "../index" {
1128
1128
  * @param arrays The arrays to inspect.
1129
1129
  * @return Returns the new array of shared values.
1130
1130
  */
1131
- intersection<T>(...arrays: Array<List<T>>): T[];
1131
+ intersection<T>(...arrays: Array<List<T> | null | undefined>): T[];
1132
1132
  }
1133
1133
 
1134
1134
  interface LoDashImplicitWrapper<TValue> {
@@ -1137,7 +1137,7 @@ declare module "../index" {
1137
1137
  */
1138
1138
  intersection<T>(
1139
1139
  this: LoDashImplicitWrapper<List<T>>,
1140
- ...arrays: Array<List<T>>
1140
+ ...arrays: Array<List<T> | null | undefined>
1141
1141
  ): LoDashImplicitWrapper<T[]>;
1142
1142
  }
1143
1143
 
@@ -1147,7 +1147,7 @@ declare module "../index" {
1147
1147
  */
1148
1148
  intersection<T>(
1149
1149
  this: LoDashExplicitWrapper<List<T>>,
1150
- ...arrays: Array<List<T>>
1150
+ ...arrays: Array<List<T> | null | undefined >
1151
1151
  ): LoDashExplicitWrapper<T[]>;
1152
1152
  }
1153
1153
 
@@ -801,10 +801,11 @@ declare module "../index" {
801
801
 
802
802
  interface LoDashStatic {
803
803
  /**
804
- * Creates a function that memoizes the result of func. If resolver is provided it determines the cache key for
805
- * storing the result based on the arguments provided to the memoized function. By default, the first argument
806
- * provided to the memoized function is coerced to a string and used as the cache key. The func is invoked with
807
- * the this binding of the memoized function.
804
+ * Creates a function that memoizes the result of `func`. If `resolver` is
805
+ * provided, it determines the cache key for storing the result based on the
806
+ * arguments provided to the memoized function. By default, the first argument
807
+ * provided to the memoized function is used as the map cache key. The `func`
808
+ * is invoked with the `this` binding of the memoized function.
808
809
  *
809
810
  * @param func The function to have its output memoized.
810
811
  * @param resolver The function to resolve the cache key.
lodash/common/lang.d.ts CHANGED
@@ -1447,7 +1447,7 @@ declare module "../index" {
1447
1447
  * _.isSymbol('abc');
1448
1448
  * // => false
1449
1449
  */
1450
- isSymbol(value: any): boolean;
1450
+ isSymbol(value: any): value is symbol;
1451
1451
  }
1452
1452
 
1453
1453
  interface LoDashImplicitWrapper<TValue> {
lodash/common/string.d.ts CHANGED
@@ -534,14 +534,14 @@ declare module "../index" {
534
534
  *
535
535
  * Note: This method is based on String#split.
536
536
  *
537
- * @param string The string to trim.
537
+ * @param string The string to split.
538
538
  * @param separator The separator pattern to split by.
539
539
  * @param limit The length to truncate results to.
540
540
  * @return Returns the new array of string segments.
541
541
  */
542
542
  split(
543
- string: string,
544
- separator?: RegExp|string,
543
+ string: string | null | undefined,
544
+ separator?: RegExp | string,
545
545
  limit?: number
546
546
  ): string[];
547
547
 
@@ -556,7 +556,7 @@ declare module "../index" {
556
556
  * @return Returns the new array of string segments.
557
557
  */
558
558
  split(
559
- string: string,
559
+ string: string | null | undefined,
560
560
  index: string | number,
561
561
  guard: object
562
562
  ): string[];
lodash/fp.d.ts CHANGED
@@ -2058,7 +2058,7 @@ declare namespace _ {
2058
2058
  type LodashIsSafeInteger = (value: any) => boolean;
2059
2059
  type LodashIsSet = (value: any) => value is Set<any>;
2060
2060
  type LodashIsString = (value: any) => value is string;
2061
- type LodashIsSymbol = (value: any) => boolean;
2061
+ type LodashIsSymbol = (value: any) => value is symbol;
2062
2062
  type LodashIsTypedArray = (value: any) => boolean;
2063
2063
  type LodashIsUndefined = (value: any) => value is undefined;
2064
2064
  type LodashIsWeakMap = (value: any) => value is WeakMap<object, any>;
@@ -4039,12 +4039,12 @@ declare namespace _ {
4039
4039
  type LodashSortedUniqBy1x1<T> = (array: lodash.List<T> | null | undefined) => T[];
4040
4040
  type LodashSortedUniqBy1x2<T> = (iteratee: lodash.ValueIteratee<T>) => T[];
4041
4041
  interface LodashSplit extends LodashConvertible {
4042
- (separator: RegExp|string): LodashSplit1x1;
4043
- (separator: lodash.__, string: string): LodashSplit1x2;
4044
- (separator: RegExp|string, string: string): string[];
4042
+ (separator: RegExp | string): LodashSplit1x1;
4043
+ (separator: lodash.__, string: string | null | undefined): LodashSplit1x2;
4044
+ (separator: RegExp | string, string: string | null | undefined): string[];
4045
4045
  }
4046
- type LodashSplit1x1 = (string: string) => string[];
4047
- type LodashSplit1x2 = (separator: RegExp|string) => string[];
4046
+ type LodashSplit1x1 = (string: string | null | undefined) => string[];
4047
+ type LodashSplit1x2 = (separator: RegExp | string) => string[];
4048
4048
  type LodashSpread = <TResult>(func: (...args: any[]) => TResult) => (...args: any[]) => TResult;
4049
4049
  interface LodashSpreadFrom extends LodashConvertible {
4050
4050
  (start: number): LodashSpreadFrom1x1;
lodash/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "4.14.155",
3
+ "version": "4.14.159",
4
4
  "description": "TypeScript definitions for Lo-Dash",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -66,6 +66,6 @@
66
66
  },
67
67
  "scripts": {},
68
68
  "dependencies": {},
69
- "typesPublisherContentHash": "b99bf15473b1173ed78ce858997cc6375bf19f78ae74141ab5717be45b00735c",
69
+ "typesPublisherContentHash": "60ce11a3ae923ba7d91fba7f43d2fcdaf44cbf2f0da7b89d2849a01c3d74283d",
70
70
  "typeScriptVersion": "3.0"
71
71
  }
@@ -670,19 +670,19 @@ declare module "../index" {
670
670
  * @param arrays The arrays to inspect.
671
671
  * @return Returns the new array of shared values.
672
672
  */
673
- intersection<T>(...arrays: Array<List<T>>): T[];
673
+ intersection<T>(...arrays: Array<List<T> | null | undefined>): T[];
674
674
  }
675
675
  interface Collection<T> {
676
676
  /**
677
677
  * @see _.intersection
678
678
  */
679
- intersection(...arrays: Array<List<T>>): Collection<T>;
679
+ intersection(...arrays: Array<List<T> | null | undefined>): Collection<T>;
680
680
  }
681
681
  interface CollectionChain<T> {
682
682
  /**
683
683
  * @see _.intersection
684
684
  */
685
- intersection(...arrays: Array<List<T>>): CollectionChain<T>;
685
+ intersection(...arrays: Array<List<T> | null | undefined>): CollectionChain<T>;
686
686
  }
687
687
  interface LoDashStatic {
688
688
  /**
@@ -1250,7 +1250,7 @@ declare module "../index" {
1250
1250
  * _.isSymbol('abc');
1251
1251
  * // => false
1252
1252
  */
1253
- isSymbol(value: any): boolean;
1253
+ isSymbol(value: any): value is symbol;
1254
1254
  }
1255
1255
  interface LoDashImplicitWrapper<TValue> {
1256
1256
  /**
@@ -401,16 +401,16 @@ declare module "../index" {
401
401
  *
402
402
  * Note: This method is based on String#split.
403
403
  *
404
- * @param string The string to trim.
404
+ * @param string The string to split.
405
405
  * @param separator The separator pattern to split by.
406
406
  * @param limit The length to truncate results to.
407
407
  * @return Returns the new array of string segments.
408
408
  */
409
- split(string: string, separator?: RegExp | string, limit?: number): string[];
409
+ split(string: string | null | undefined, separator?: RegExp | string, limit?: number): string[];
410
410
  /**
411
411
  * @see _.split
412
412
  */
413
- split(string: string, index: string | number, guard: object): string[];
413
+ split(string: string | null | undefined, index: string | number, guard: object): string[];
414
414
  }
415
415
  interface LoDashImplicitWrapper<TValue> {
416
416
  /**
lodash/ts3.1/fp.d.ts CHANGED
@@ -1999,7 +1999,7 @@ declare namespace _ {
1999
1999
  type LodashIsSafeInteger = (value: any) => boolean;
2000
2000
  type LodashIsSet = (value: any) => value is Set<any>;
2001
2001
  type LodashIsString = (value: any) => value is string;
2002
- type LodashIsSymbol = (value: any) => boolean;
2002
+ type LodashIsSymbol = (value: any) => value is symbol;
2003
2003
  type LodashIsTypedArray = (value: any) => boolean;
2004
2004
  type LodashIsUndefined = (value: any) => value is undefined;
2005
2005
  type LodashIsWeakMap = (value: any) => value is WeakMap<object, any>;
@@ -4020,10 +4020,10 @@ declare namespace _ {
4020
4020
  type LodashSortedUniqBy1x2<T> = (iteratee: lodash.ValueIteratee<T>) => T[];
4021
4021
  interface LodashSplit {
4022
4022
  (separator: RegExp | string): LodashSplit1x1;
4023
- (separator: lodash.__, string: string): LodashSplit1x2;
4024
- (separator: RegExp | string, string: string): string[];
4023
+ (separator: lodash.__, string: string | null | undefined): LodashSplit1x2;
4024
+ (separator: RegExp | string, string: string | null | undefined): string[];
4025
4025
  }
4026
- type LodashSplit1x1 = (string: string) => string[];
4026
+ type LodashSplit1x1 = (string: string | null | undefined) => string[];
4027
4027
  type LodashSplit1x2 = (separator: RegExp | string) => string[];
4028
4028
  type LodashSpread = <TResult>(func: (...args: any[]) => TResult) => (...args: any[]) => TResult;
4029
4029
  interface LodashSpreadFrom {