@types/lodash 4.14.172 → 4.14.176

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: Tue, 03 Aug 2021 08:31:20 GMT
11
+ * Last updated: Wed, 20 Oct 2021 22:31:23 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `_`
14
14
 
lodash/common/array.d.ts CHANGED
@@ -53,8 +53,7 @@ declare module "../index" {
53
53
  * and/or values.
54
54
  *
55
55
  * @category Array
56
- * @param array The array to concatenate.
57
- * @param [values] The values to concatenate.
56
+ * @param [values] The array values to concatenate.
58
57
  * @returns Returns the new concatenated array.
59
58
  * @example
60
59
  *
@@ -67,7 +66,7 @@ declare module "../index" {
67
66
  * console.log(array);
68
67
  * // => [1]
69
68
  */
70
- concat<T>(array: Many<T>, ...values: Array<Many<T>>): T[];
69
+ concat<T>(...values: Array<Many<T>>): T[];
71
70
  }
72
71
  interface Primitive<T> {
73
72
  /**
@@ -946,53 +946,53 @@ declare module "../index" {
946
946
  * @param iteratee The function invoked per iteration.
947
947
  * @return Returns the composed aggregate object.
948
948
  */
949
- groupBy<T>(collection: List<T> | null | undefined, iteratee?: ValueIteratee<T>): Dictionary<T[]>;
949
+ groupBy<T>(collection: List<T> | null | undefined, iteratee?: ValueIteratee<T>): Dictionary<[T, ...T[]]>;
950
950
  /**
951
951
  * @see _.groupBy
952
952
  */
953
- groupBy<T extends object>(collection: T | null | undefined, iteratee?: ValueIteratee<T[keyof T]>): Dictionary<Array<T[keyof T]>>;
953
+ groupBy<T extends object>(collection: T | null | undefined, iteratee?: ValueIteratee<T[keyof T]>): Dictionary<[T[keyof T], ...Array<T[keyof T]>]>;
954
954
  }
955
955
  interface String {
956
956
  /**
957
957
  * @see _.groupBy
958
958
  */
959
- groupBy(iteratee?: ValueIteratee<string>): Object<Dictionary<string[]>>;
959
+ groupBy(iteratee?: ValueIteratee<string>): Object<Dictionary<[string, ...string[]]>>;
960
960
  }
961
961
  interface Collection<T> {
962
962
  /**
963
963
  * @see _.groupBy
964
964
  */
965
- groupBy(iteratee?: ValueIteratee<T>): Object<Dictionary<T[]>>;
965
+ groupBy(iteratee?: ValueIteratee<T>): Object<Dictionary<[T, ...T[]]>>;
966
966
  }
967
967
  interface Object<T> {
968
968
  /**
969
969
  * @see _.groupBy
970
970
  */
971
- groupBy(iteratee?: ValueIteratee<T[keyof T]>): Object<Dictionary<Array<T[keyof T]>>>;
971
+ groupBy(iteratee?: ValueIteratee<T[keyof T]>): Object<Dictionary<[T[keyof T], ...Array<T[keyof T]>]>>;
972
972
  }
973
973
  interface StringChain {
974
974
  /**
975
975
  * @see _.groupBy
976
976
  */
977
- groupBy(iteratee?: ValueIteratee<string>): ObjectChain<Dictionary<string[]>>;
977
+ groupBy(iteratee?: ValueIteratee<string>): ObjectChain<Dictionary<[string, ...string[]]>>;
978
978
  }
979
979
  interface StringNullableChain {
980
980
  /**
981
981
  * @see _.groupBy
982
982
  */
983
- groupBy(iteratee?: ValueIteratee<string>): ObjectChain<Dictionary<string>>;
983
+ groupBy(iteratee?: ValueIteratee<string>): ObjectChain<Dictionary<[string, ...string[]]>>;
984
984
  }
985
985
  interface CollectionChain<T> {
986
986
  /**
987
987
  * @see _.groupBy
988
988
  */
989
- groupBy(iteratee?: ValueIteratee<T>): ObjectChain<Dictionary<T[]>>;
989
+ groupBy(iteratee?: ValueIteratee<T>): ObjectChain<Dictionary<[T, ...T[]]>>;
990
990
  }
991
991
  interface ObjectChain<T> {
992
992
  /**
993
993
  * @see _.groupBy
994
994
  */
995
- groupBy(iteratee?: ValueIteratee<T[keyof T]>): ObjectChain<Dictionary<Array<T[keyof T]>>>;
995
+ groupBy(iteratee?: ValueIteratee<T[keyof T]>): ObjectChain<Dictionary<[T[keyof T], ...Array<T[keyof T]>]>>;
996
996
  }
997
997
  interface LoDashStatic {
998
998
  /**
lodash/common/object.d.ts CHANGED
@@ -2079,7 +2079,7 @@ declare module "../index" {
2079
2079
  /**
2080
2080
  * @see _.pickBy
2081
2081
  */
2082
- pickBy(predicate?: ValueKeyIteratee<T[keyof T]>): Object<PartialObject<T>>;
2082
+ pickBy(predicate?: ValueKeyIteratee<T[keyof T]>): Object<T extends Dictionary<unknown> ? Dictionary<T[keyof T]> : T extends NumericDictionary<unknown> ? NumericDictionary<T[keyof T]> : PartialObject<T>>;
2083
2083
  }
2084
2084
  interface CollectionChain<T> {
2085
2085
  /**
@@ -2099,7 +2099,7 @@ declare module "../index" {
2099
2099
  /**
2100
2100
  * @see _.pickBy
2101
2101
  */
2102
- pickBy(predicate?: ValueKeyIteratee<T[keyof T]>): ObjectChain<PartialObject<T>>;
2102
+ pickBy(predicate?: ValueKeyIteratee<T[keyof T]>): ObjectChain<T extends Dictionary<unknown> ? Dictionary<T[keyof T]> : T extends NumericDictionary<unknown> ? NumericDictionary<T[keyof T]> : PartialObject<T>>;
2103
2103
  }
2104
2104
  interface LoDashStatic {
2105
2105
  /**
lodash/fp.d.ts CHANGED
@@ -1593,13 +1593,13 @@ declare namespace _ {
1593
1593
  interface LodashGroupBy {
1594
1594
  <T>(iteratee: lodash.ValueIteratee<T>): LodashGroupBy1x1<T>;
1595
1595
  <T>(iteratee: lodash.__, collection: lodash.List<T> | null | undefined): LodashGroupBy1x2<T>;
1596
- <T>(iteratee: lodash.ValueIteratee<T>, collection: lodash.List<T> | null | undefined): lodash.Dictionary<T[]>;
1596
+ <T>(iteratee: lodash.ValueIteratee<T>, collection: lodash.List<T> | null | undefined): lodash.Dictionary<[T, ...T[]]>;
1597
1597
  <T extends object>(iteratee: lodash.__, collection: T | null | undefined): LodashGroupBy2x2<T>;
1598
- <T extends object>(iteratee: lodash.ValueIteratee<T[keyof T]>, collection: T | null | undefined): lodash.Dictionary<Array<T[keyof T]>>;
1598
+ <T extends object>(iteratee: lodash.ValueIteratee<T[keyof T]>, collection: T | null | undefined): lodash.Dictionary<[T[keyof T], ...Array<T[keyof T]>]>;
1599
1599
  }
1600
- type LodashGroupBy1x1<T> = (collection: lodash.List<T> | object | null | undefined) => lodash.Dictionary<T[]>;
1601
- type LodashGroupBy1x2<T> = (iteratee: lodash.ValueIteratee<T>) => lodash.Dictionary<T[]>;
1602
- type LodashGroupBy2x2<T> = (iteratee: lodash.ValueIteratee<T[keyof T]>) => lodash.Dictionary<Array<T[keyof T]>>;
1600
+ type LodashGroupBy1x1<T> = (collection: lodash.List<T> | object | null | undefined) => lodash.Dictionary<[T, ...T[]]>;
1601
+ type LodashGroupBy1x2<T> = (iteratee: lodash.ValueIteratee<T>) => lodash.Dictionary<[T, ...T[]]>;
1602
+ type LodashGroupBy2x2<T> = (iteratee: lodash.ValueIteratee<T[keyof T]>) => lodash.Dictionary<[T[keyof T], ...Array<T[keyof T]>]>;
1603
1603
  interface LodashGt {
1604
1604
  (value: any): LodashGt1x1;
1605
1605
  (value: lodash.__, other: any): LodashGt1x2;
lodash/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "4.14.172",
3
+ "version": "4.14.176",
4
4
  "description": "TypeScript definitions for Lo-Dash",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash",
6
6
  "license": "MIT",
@@ -60,6 +60,6 @@
60
60
  },
61
61
  "scripts": {},
62
62
  "dependencies": {},
63
- "typesPublisherContentHash": "c531bcff25b826bd15082a3163d719b3d8ad00653a0a5ce5503747ec39843008",
64
- "typeScriptVersion": "3.6"
63
+ "typesPublisherContentHash": "1b67ca87899020bd2db2d94fd988d84696030b943ffcb0c59f5f0e16da2e1d51",
64
+ "typeScriptVersion": "3.7"
65
65
  }