@types/lodash 4.14.177 → 4.14.180

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: Mon, 15 Nov 2021 17:31:57 GMT
11
+ * Last updated: Mon, 14 Mar 2022 19:31:43 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `_`
14
14
 
lodash/common/array.d.ts CHANGED
@@ -106,8 +106,8 @@ declare module "../index" {
106
106
  }
107
107
  interface LoDashStatic {
108
108
  /**
109
- * Creates an array of unique array values not included in the other provided arrays using SameValueZero for
110
- * equality comparisons.
109
+ * Creates an array of `array` values not included in the other provided arrays using SameValueZero for
110
+ * equality comparisons. The order and references of result values are determined by the first array.
111
111
  *
112
112
  * @param array The array to inspect.
113
113
  * @param values The arrays of values to exclude.
@@ -129,9 +129,9 @@ declare module "../index" {
129
129
  }
130
130
  interface LoDashStatic {
131
131
  /**
132
- * This method is like _.difference except that it accepts iteratee which is invoked for each element of array
133
- * and values to generate the criterion by which uniqueness is computed. The iteratee is invoked with one
134
- * argument: (value).
132
+ * This method is like _.difference except that it accepts iteratee which is invoked for each element
133
+ * of array and values to generate the criterion by which they're compared. The order and references
134
+ * of result values are determined by the first array. The iteratee is invoked with one argument: (value).
135
135
  *
136
136
  * @param array The array to inspect.
137
137
  * @param values The values to exclude.
@@ -186,9 +186,9 @@ declare module "../index" {
186
186
  }
187
187
  interface LoDashStatic {
188
188
  /**
189
- * Creates an array of unique `array` values not included in the other
190
- * provided arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
191
- * for equality comparisons.
189
+ * This method is like _.difference except that it accepts comparator which is invoked to compare elements
190
+ * of array to values. The order and references of result values are determined by the first array. The
191
+ * comparator is invoked with two arguments: (arrVal, othVal).
192
192
  *
193
193
  * @category Array
194
194
  * @param [values] The arrays to inspect.
@@ -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, ...T[]]>;
949
+ groupBy<T>(collection: List<T> | null | undefined, iteratee?: ValueIteratee<T>): Dictionary<T[]>;
950
950
  /**
951
951
  * @see _.groupBy
952
952
  */
953
- groupBy<T extends object>(collection: T | null | undefined, iteratee?: ValueIteratee<T[keyof T]>): Dictionary<[T[keyof T], ...Array<T[keyof T]>]>;
953
+ groupBy<T extends object>(collection: T | null | undefined, iteratee?: ValueIteratee<T[keyof T]>): Dictionary<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, ...string[]]>>;
959
+ groupBy(iteratee?: ValueIteratee<string>): Object<Dictionary<string[]>>;
960
960
  }
961
961
  interface Collection<T> {
962
962
  /**
963
963
  * @see _.groupBy
964
964
  */
965
- groupBy(iteratee?: ValueIteratee<T>): Object<Dictionary<[T, ...T[]]>>;
965
+ groupBy(iteratee?: ValueIteratee<T>): Object<Dictionary<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<[T[keyof T], ...Array<T[keyof T]>]>>;
971
+ groupBy(iteratee?: ValueIteratee<T[keyof T]>): Object<Dictionary<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, ...string[]]>>;
977
+ groupBy(iteratee?: ValueIteratee<string>): ObjectChain<Dictionary<string[]>>;
978
978
  }
979
979
  interface StringNullableChain {
980
980
  /**
981
981
  * @see _.groupBy
982
982
  */
983
- groupBy(iteratee?: ValueIteratee<string>): ObjectChain<Dictionary<[string, ...string[]]>>;
983
+ groupBy(iteratee?: ValueIteratee<string>): ObjectChain<Dictionary<string[]>>;
984
984
  }
985
985
  interface CollectionChain<T> {
986
986
  /**
987
987
  * @see _.groupBy
988
988
  */
989
- groupBy(iteratee?: ValueIteratee<T>): ObjectChain<Dictionary<[T, ...T[]]>>;
989
+ groupBy(iteratee?: ValueIteratee<T>): ObjectChain<Dictionary<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<[T[keyof T], ...Array<T[keyof T]>]>>;
995
+ groupBy(iteratee?: ValueIteratee<T[keyof T]>): ObjectChain<Dictionary<Array<T[keyof T]>>>;
996
996
  }
997
997
  interface LoDashStatic {
998
998
  /**
lodash/common/lang.d.ts CHANGED
@@ -220,7 +220,8 @@ declare module "../index" {
220
220
  */
221
221
  conformsTo(source: ConformsPredicateObject<TValue>): PrimitiveChain<boolean>;
222
222
  }
223
- type CondPair<T, R> = [(val: T) => boolean, (val: T) => R];
223
+ type CondPairNullary<R> = [() => boolean, () => R];
224
+ type CondPairUnary<T, R> = [(val: T) => boolean, (val: T) => R];
224
225
  interface LoDashStatic {
225
226
  /**
226
227
  * Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
lodash/common/util.d.ts CHANGED
@@ -79,7 +79,8 @@ declare module "../index" {
79
79
  * func({ 'a': '1', 'b': '2' });
80
80
  * // => 'no match'
81
81
  */
82
- cond<T, R>(pairs: Array<CondPair<T, R>>): (Target: T) => R;
82
+ cond<R>(pairs: Array<CondPairNullary<R>>): () => R;
83
+ cond<T, R>(pairs: Array<CondPairUnary<T, R>>): (Target: T) => R;
83
84
  }
84
85
 
85
86
  type ConformsPredicateObject<T> = {
lodash/fp.d.ts CHANGED
@@ -317,7 +317,10 @@ declare namespace _ {
317
317
  }
318
318
  type LodashConcat1x1<T> = (values: lodash.Many<T>) => T[];
319
319
  type LodashConcat1x2<T> = (array: lodash.Many<T>) => T[];
320
- type LodashCond = <T, R>(pairs: Array<lodash.CondPair<T, R>>) => (Target: T) => R;
320
+ interface LodashCond {
321
+ <R>(pairs: Array<lodash.CondPairNullary<R>>): () => R;
322
+ <T, R>(pairs: Array<lodash.CondPairUnary<T, R>>): (Target: T) => R;
323
+ }
321
324
  interface LodashConformsTo {
322
325
  <T>(source: lodash.ConformsPredicateObject<T>): LodashConformsTo1x1<T>;
323
326
  <T>(source: lodash.__, object: T): LodashConformsTo1x2<T>;
@@ -1593,13 +1596,13 @@ declare namespace _ {
1593
1596
  interface LodashGroupBy {
1594
1597
  <T>(iteratee: lodash.ValueIteratee<T>): LodashGroupBy1x1<T>;
1595
1598
  <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, ...T[]]>;
1599
+ <T>(iteratee: lodash.ValueIteratee<T>, collection: lodash.List<T> | null | undefined): lodash.Dictionary<T[]>;
1597
1600
  <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<[T[keyof T], ...Array<T[keyof T]>]>;
1601
+ <T extends object>(iteratee: lodash.ValueIteratee<T[keyof T]>, collection: T | null | undefined): lodash.Dictionary<Array<T[keyof T]>>;
1599
1602
  }
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
+ type LodashGroupBy1x1<T> = (collection: lodash.List<T> | object | null | undefined) => lodash.Dictionary<T[]>;
1604
+ type LodashGroupBy1x2<T> = (iteratee: lodash.ValueIteratee<T>) => lodash.Dictionary<T[]>;
1605
+ type LodashGroupBy2x2<T> = (iteratee: lodash.ValueIteratee<T[keyof T]>) => lodash.Dictionary<Array<T[keyof T]>>;
1603
1606
  interface LodashGt {
1604
1607
  (value: any): LodashGt1x1;
1605
1608
  (value: lodash.__, other: any): LodashGt1x2;
lodash/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "4.14.177",
3
+ "version": "4.14.180",
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": "62c83f6b673d4d070131f428e31523cd62295c6966c79eada66ab2f7179e9aeb",
64
- "typeScriptVersion": "3.7"
63
+ "typesPublisherContentHash": "866f70e18f129356be318f5ed741df1d7045aed3ba2063f3c44809f9015d1059",
64
+ "typeScriptVersion": "3.9"
65
65
  }