@types/lodash 4.14.113 → 4.14.117

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation. All rights reserved.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
lodash/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
9
9
 
10
10
  Additional Details
11
- * Last updated: Mon, 23 Jul 2018 23:44:11 GMT
11
+ * Last updated: Tue, 09 Oct 2018 18:16:18 GMT
12
12
  * Dependencies: none
13
13
  * Global values: _
14
14
 
@@ -1658,7 +1658,7 @@ declare module "../index" {
1658
1658
  orderBy<T>(
1659
1659
  collection: List<T> | null | undefined,
1660
1660
  iteratees?: Many<ListIterator<T, NotVoid>>,
1661
- orders?: Many<boolean|string>
1661
+ orders?: Many<boolean|"asc"|"desc">
1662
1662
  ): T[];
1663
1663
 
1664
1664
  /**
@@ -1667,7 +1667,7 @@ declare module "../index" {
1667
1667
  orderBy<T>(
1668
1668
  collection: List<T> | null | undefined,
1669
1669
  iteratees?: Many<ListIteratee<T>>,
1670
- orders?: Many<boolean|string>
1670
+ orders?: Many<boolean|"asc"|"desc">
1671
1671
  ): T[];
1672
1672
 
1673
1673
  /**
@@ -1676,7 +1676,7 @@ declare module "../index" {
1676
1676
  orderBy<T extends object>(
1677
1677
  collection: T | null | undefined,
1678
1678
  iteratees?: Many<ObjectIterator<T, NotVoid>>,
1679
- orders?: Many<boolean|string>
1679
+ orders?: Many<boolean|"asc"|"desc">
1680
1680
  ): Array<T[keyof T]>;
1681
1681
 
1682
1682
  /**
@@ -1685,7 +1685,7 @@ declare module "../index" {
1685
1685
  orderBy<T extends object>(
1686
1686
  collection: T | null | undefined,
1687
1687
  iteratees?: Many<ObjectIteratee<T>>,
1688
- orders?: Many<boolean|string>
1688
+ orders?: Many<boolean|"asc"|"desc">
1689
1689
  ): Array<T[keyof T]>;
1690
1690
  }
1691
1691
 
@@ -1696,7 +1696,7 @@ declare module "../index" {
1696
1696
  orderBy<T>(
1697
1697
  this: LoDashImplicitWrapper<List<T> | null | undefined>,
1698
1698
  iteratees?: Many<ListIterator<T, NotVoid>>,
1699
- orders?: Many<boolean|string>
1699
+ orders?: Many<boolean|"asc"|"desc">
1700
1700
  ): LoDashImplicitWrapper<T[]>;
1701
1701
 
1702
1702
  /**
@@ -1705,7 +1705,7 @@ declare module "../index" {
1705
1705
  orderBy<T>(
1706
1706
  this: LoDashImplicitWrapper<List<T> | null | undefined>,
1707
1707
  iteratees?: Many<ListIteratee<T>>,
1708
- orders?: Many<boolean|string>
1708
+ orders?: Many<boolean|"asc"|"desc">
1709
1709
  ): LoDashImplicitWrapper<T[]>;
1710
1710
 
1711
1711
  /**
@@ -1714,7 +1714,7 @@ declare module "../index" {
1714
1714
  orderBy<T extends object>(
1715
1715
  this: LoDashImplicitWrapper<T | null | undefined>,
1716
1716
  iteratees?: Many<ObjectIterator<T, NotVoid>>,
1717
- orders?: Many<boolean|string>
1717
+ orders?: Many<boolean|"asc"|"desc">
1718
1718
  ): LoDashImplicitWrapper<Array<T[keyof T]>>;
1719
1719
 
1720
1720
  /**
@@ -1723,7 +1723,7 @@ declare module "../index" {
1723
1723
  orderBy<T extends object>(
1724
1724
  this: LoDashImplicitWrapper<T | null | undefined>,
1725
1725
  iteratees?: Many<ObjectIteratee<T>>,
1726
- orders?: Many<boolean|string>
1726
+ orders?: Many<boolean|"asc"|"desc">
1727
1727
  ): LoDashImplicitWrapper<Array<T[keyof T]>>;
1728
1728
  }
1729
1729
 
@@ -1734,7 +1734,7 @@ declare module "../index" {
1734
1734
  orderBy<T>(
1735
1735
  this: LoDashExplicitWrapper<List<T> | null | undefined>,
1736
1736
  iteratees?: Many<ListIterator<T, NotVoid>>,
1737
- orders?: Many<boolean|string>
1737
+ orders?: Many<boolean|"asc"|"desc">
1738
1738
  ): LoDashExplicitWrapper<T[]>;
1739
1739
 
1740
1740
  /**
@@ -1743,7 +1743,7 @@ declare module "../index" {
1743
1743
  orderBy<T>(
1744
1744
  this: LoDashExplicitWrapper<List<T> | null | undefined>,
1745
1745
  iteratees?: Many<ListIteratee<T>>,
1746
- orders?: Many<boolean|string>
1746
+ orders?: Many<boolean|"asc"|"desc">
1747
1747
  ): LoDashExplicitWrapper<T[]>;
1748
1748
 
1749
1749
  /**
@@ -1752,7 +1752,7 @@ declare module "../index" {
1752
1752
  orderBy<T extends object>(
1753
1753
  this: LoDashExplicitWrapper<T | null | undefined>,
1754
1754
  iteratees?: Many<ObjectIterator<T, NotVoid>>,
1755
- orders?: Many<boolean|string>
1755
+ orders?: Many<boolean|"asc"|"desc">
1756
1756
  ): LoDashExplicitWrapper<Array<T[keyof T]>>;
1757
1757
 
1758
1758
  /**
@@ -1761,7 +1761,7 @@ declare module "../index" {
1761
1761
  orderBy<T extends object>(
1762
1762
  this: LoDashExplicitWrapper<T | null | undefined>,
1763
1763
  iteratees?: Many<ObjectIteratee<T>>,
1764
- orders?: Many<boolean|string>
1764
+ orders?: Many<boolean|"asc"|"desc">
1765
1765
  ): LoDashExplicitWrapper<Array<T[keyof T]>>;
1766
1766
  }
1767
1767
 
lodash/common/common.d.ts CHANGED
@@ -3,7 +3,7 @@ import _ = require("../index");
3
3
  type GlobalPartial<T> = Partial<T>;
4
4
  declare module "../index" {
5
5
  type PartialObject<T> = GlobalPartial<T>;
6
- type Many<T> = T | T[]; // TODO: Should be ReadonlyArray<T>, but requires ts2.5 to not infinitely loop
6
+ type Many<T> = T | ReadonlyArray<T>;
7
7
  interface LoDashStatic {
8
8
  /**
9
9
  * Creates a lodash object which wraps value to enable implicit method chain sequences.
@@ -179,16 +179,17 @@ declare module "../index" {
179
179
  }
180
180
 
181
181
  type NotVoid = {} | null | undefined;
182
+ type IterateeShorthand<T> = PropertyName | [PropertyName, any] | PartialDeep<T>;
182
183
  type ArrayIterator<T, TResult> = (value: T, index: number, collection: T[]) => TResult;
183
184
  type ListIterator<T, TResult> = (value: T, index: number, collection: List<T>) => TResult;
184
- type ListIteratee<T> = ListIterator<T, NotVoid> | string | [string, any] | PartialDeep<T>;
185
- type ListIterateeCustom<T, TResult> = ListIterator<T, TResult> | string | [string, any] | PartialDeep<T>;
185
+ type ListIteratee<T> = ListIterator<T, NotVoid> | IterateeShorthand<T>;
186
+ type ListIterateeCustom<T, TResult> = ListIterator<T, TResult> | IterateeShorthand<T>;
186
187
  type ListIteratorTypeGuard<T, S extends T> = (value: T, index: number, collection: List<T>) => value is S;
187
188
 
188
189
  // Note: key should be string, not keyof T, because the actual object may contain extra properties that were not specified in the type.
189
190
  type ObjectIterator<TObject, TResult> = (value: TObject[keyof TObject], key: string, collection: TObject) => TResult;
190
- type ObjectIteratee<TObject> = ObjectIterator<TObject, NotVoid> | string | [string, any] | PartialDeep<TObject[keyof TObject]>;
191
- type ObjectIterateeCustom<TObject, TResult> = ObjectIterator<TObject, TResult> | string | [string, any] | PartialDeep<TObject[keyof TObject]>;
191
+ type ObjectIteratee<TObject> = ObjectIterator<TObject, NotVoid> | IterateeShorthand<TObject[keyof TObject]>;
192
+ type ObjectIterateeCustom<TObject, TResult> = ObjectIterator<TObject, TResult> | IterateeShorthand<TObject[keyof TObject]>;
192
193
  type ObjectIteratorTypeGuard<TObject, S extends TObject[keyof TObject]> = (value: TObject[keyof TObject], key: string, collection: TObject) => value is S;
193
194
 
194
195
  type StringIterator<TResult> = (char: string, index: number, string: string) => TResult;
@@ -207,10 +208,11 @@ declare module "../index" {
207
208
  type MemoVoidDictionaryIterator<T, TResult> = (acc: TResult, curr: T, key: string, dict: Dictionary<T>) => void;
208
209
  type MemoVoidIteratorCapped<T, TResult> = (acc: TResult, curr: T) => void;
209
210
 
210
- type ValueIteratee<T> = ((value: T) => NotVoid) | string | [string, any] | PartialDeep<T>;
211
- type ValueIterateeCustom<T, TResult> = ((value: T) => TResult) | string | [string, any] | PartialDeep<T>;
211
+ type ValueIteratee<T> = ((value: T) => NotVoid) | IterateeShorthand<T>;
212
+ type ValueIterateeCustom<T, TResult> = ((value: T) => TResult) | IterateeShorthand<T>;
212
213
  type ValueIteratorTypeGuard<T, S extends T> = (value: T) => value is S;
213
- type ValueKeyIteratee<T> = ((value: T, key: string) => NotVoid) | string | [string, any] | PartialDeep<T>;
214
+ type ValueKeyIteratee<T> = ((value: T, key: string) => NotVoid) | IterateeShorthand<T>;
215
+ type ValueKeyIterateeTypeGuard<T, S extends T> = (value: T, key: string) => value is S;
214
216
  type Comparator<T> = (a: T, b: T) => boolean;
215
217
  type Comparator2<T1, T2> = (a: T1, b: T2) => boolean;
216
218
 
@@ -263,6 +265,6 @@ declare module "../index" {
263
265
  type DictionaryIteratorTypeGuard<T, S extends T> = ObjectIteratorTypeGuard<Dictionary<T>, S>;
264
266
  // NOTE: keys of objects at run time are always strings, even when a NumericDictionary is being iterated.
265
267
  type NumericDictionaryIterator<T, TResult> = (value: T, key: string, collection: NumericDictionary<T>) => TResult;
266
- type NumericDictionaryIteratee<T> = NumericDictionaryIterator<T, NotVoid> | string | [string, any] | PartialDeep<T>;
267
- type NumericDictionaryIterateeCustom<T, TResult> = NumericDictionaryIterator<T, TResult> | string | [string, any] | PartialDeep<T>;
268
+ type NumericDictionaryIteratee<T> = NumericDictionaryIterator<T, NotVoid> | IterateeShorthand<T>;
269
+ type NumericDictionaryIterateeCustom<T, TResult> = NumericDictionaryIterator<T, TResult> | IterateeShorthand<T>;
268
270
  }
lodash/common/object.d.ts CHANGED
@@ -3111,11 +3111,19 @@ declare module "../index" {
3111
3111
  * _.pickBy(object, _.isNumber);
3112
3112
  * // => { 'a': 1, 'c': 3 }
3113
3113
  */
3114
- pickBy<T extends object, S extends T[keyof T]>(
3115
- object: T | null | undefined,
3116
- predicate: ObjectIteratorTypeGuard<T, S>
3114
+ pickBy<T, S extends T>(
3115
+ object: Dictionary<T> | null | undefined,
3116
+ predicate: ValueKeyIterateeTypeGuard<T, S>
3117
3117
  ): Dictionary<S>;
3118
3118
 
3119
+ /**
3120
+ * @see _.pickBy
3121
+ */
3122
+ pickBy<T, S extends T>(
3123
+ object: NumericDictionary<T> | null | undefined,
3124
+ predicate: ValueKeyIterateeTypeGuard<T, S>
3125
+ ): NumericDictionary<S>;
3126
+
3119
3127
  /**
3120
3128
  * @see _.pickBy
3121
3129
  */
@@ -3145,11 +3153,19 @@ declare module "../index" {
3145
3153
  /**
3146
3154
  * @see _.pickBy
3147
3155
  */
3148
- pickBy<T extends object, S extends T[keyof T]>(
3149
- this: LoDashImplicitWrapper<T | null | undefined>,
3150
- predicate: ObjectIteratorTypeGuard<T, S>
3156
+ pickBy<T, S extends T>(
3157
+ this: LoDashImplicitWrapper<Dictionary<T> | null | undefined>,
3158
+ predicate: ValueKeyIterateeTypeGuard<T, S>
3151
3159
  ): LoDashImplicitWrapper<Dictionary<S>>;
3152
3160
 
3161
+ /**
3162
+ * @see _.pickBy
3163
+ */
3164
+ pickBy<T, S extends T>(
3165
+ this: LoDashImplicitWrapper<NumericDictionary<T> | null | undefined>,
3166
+ predicate: ValueKeyIterateeTypeGuard<T, S>
3167
+ ): LoDashImplicitWrapper<NumericDictionary<S>>;
3168
+
3153
3169
  /**
3154
3170
  * @see _.pickBy
3155
3171
  */
@@ -3179,11 +3195,19 @@ declare module "../index" {
3179
3195
  /**
3180
3196
  * @see _.pickBy
3181
3197
  */
3182
- pickBy<T extends object, S extends T[keyof T]>(
3183
- this: LoDashExplicitWrapper<T | null | undefined>,
3184
- predicate: ObjectIteratorTypeGuard<T, S>
3198
+ pickBy<T, S extends T>(
3199
+ this: LoDashExplicitWrapper<Dictionary<T> | null | undefined>,
3200
+ predicate: ValueKeyIterateeTypeGuard<T, S>
3185
3201
  ): LoDashExplicitWrapper<Dictionary<S>>;
3186
3202
 
3203
+ /**
3204
+ * @see _.pickBy
3205
+ */
3206
+ pickBy<T, S extends T>(
3207
+ this: LoDashExplicitWrapper<NumericDictionary<T> | null | undefined>,
3208
+ predicate: ValueKeyIterateeTypeGuard<T, S>
3209
+ ): LoDashExplicitWrapper<NumericDictionary<S>>;
3210
+
3187
3211
  /**
3188
3212
  * @see _.pickBy
3189
3213
  */
lodash/fp.d.ts CHANGED
@@ -2312,25 +2312,25 @@ declare namespace _ {
2312
2312
  type LodashOnce = <T extends (...args: any[]) => any>(func: T) => T;
2313
2313
  interface LodashOrderBy {
2314
2314
  <T>(iteratees: lodash.Many<(value: T) => lodash.NotVoid>): LodashOrderBy1x1<T>;
2315
- (iteratees: lodash.__, orders: lodash.Many<boolean|string>): LodashOrderBy1x2;
2316
- <T>(iteratees: lodash.Many<(value: T) => lodash.NotVoid>, orders: lodash.Many<boolean|string>): LodashOrderBy1x3<T>;
2315
+ (iteratees: lodash.__, orders: lodash.Many<boolean|"asc"|"desc">): LodashOrderBy1x2;
2316
+ <T>(iteratees: lodash.Many<(value: T) => lodash.NotVoid>, orders: lodash.Many<boolean|"asc"|"desc">): LodashOrderBy1x3<T>;
2317
2317
  <T>(iteratees: lodash.__, orders: lodash.__, collection: lodash.List<T> | null | undefined): LodashOrderBy1x4<T>;
2318
2318
  <T>(iteratees: lodash.Many<(value: T) => lodash.NotVoid>, orders: lodash.__, collection: lodash.List<T> | null | undefined): LodashOrderBy1x5<T>;
2319
- <T>(iteratees: lodash.__, orders: lodash.Many<boolean|string>, collection: lodash.List<T> | null | undefined): LodashOrderBy1x6<T>;
2320
- <T>(iteratees: lodash.Many<(value: T) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T>>, orders: lodash.Many<boolean | string>, collection: lodash.List<T> | null | undefined): T[];
2319
+ <T>(iteratees: lodash.__, orders: lodash.Many<boolean|"asc"|"desc">, collection: lodash.List<T> | null | undefined): LodashOrderBy1x6<T>;
2320
+ <T>(iteratees: lodash.Many<(value: T) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T>>, orders: lodash.Many<boolean | "asc" | "desc">, collection: lodash.List<T> | null | undefined): T[];
2321
2321
  <T>(iteratees: lodash.Many<lodash.ValueIteratee<T>>): LodashOrderBy2x1<T>;
2322
- <T>(iteratees: lodash.Many<lodash.ValueIteratee<T>>, orders: lodash.Many<boolean|string>): LodashOrderBy2x3<T>;
2322
+ <T>(iteratees: lodash.Many<lodash.ValueIteratee<T>>, orders: lodash.Many<boolean|"asc"|"desc">): LodashOrderBy2x3<T>;
2323
2323
  <T>(iteratees: lodash.Many<lodash.ValueIteratee<T>>, orders: lodash.__, collection: lodash.List<T> | null | undefined): LodashOrderBy2x5<T>;
2324
2324
  <T extends object>(iteratees: lodash.__, orders: lodash.__, collection: T | null | undefined): LodashOrderBy3x4<T>;
2325
2325
  <T extends object>(iteratees: lodash.Many<(value: T[keyof T]) => lodash.NotVoid>, orders: lodash.__, collection: T | null | undefined): LodashOrderBy3x5<T>;
2326
- <T extends object>(iteratees: lodash.__, orders: lodash.Many<boolean|string>, collection: T | null | undefined): LodashOrderBy3x6<T>;
2327
- <T extends object>(iteratees: lodash.Many<(value: T[keyof T]) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T[keyof T]>>, orders: lodash.Many<boolean | string>, collection: T | null | undefined): Array<T[keyof T]>;
2326
+ <T extends object>(iteratees: lodash.__, orders: lodash.Many<boolean|"asc"|"desc">, collection: T | null | undefined): LodashOrderBy3x6<T>;
2327
+ <T extends object>(iteratees: lodash.Many<(value: T[keyof T]) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T[keyof T]>>, orders: lodash.Many<boolean | "asc" | "desc">, collection: T | null | undefined): Array<T[keyof T]>;
2328
2328
  <T extends object>(iteratees: lodash.Many<lodash.ValueIteratee<T[keyof T]>>, orders: lodash.__, collection: T | null | undefined): LodashOrderBy4x5<T>;
2329
2329
  }
2330
2330
  interface LodashOrderBy1x1<T> {
2331
- (orders: lodash.Many<boolean | string>): LodashOrderBy1x3<T>;
2331
+ (orders: lodash.Many<boolean | "asc" | "desc">): LodashOrderBy1x3<T>;
2332
2332
  (orders: lodash.__, collection: lodash.List<T> | null | undefined): LodashOrderBy1x5<T>;
2333
- (orders: lodash.Many<boolean | string>, collection: lodash.List<T> | object | null | undefined): T[];
2333
+ (orders: lodash.Many<boolean | "asc" | "desc">, collection: lodash.List<T> | object | null | undefined): T[];
2334
2334
  <T1 extends object>(orders: lodash.__, collection: T1 | null | undefined): LodashOrderBy3x5<T>;
2335
2335
  }
2336
2336
  interface LodashOrderBy1x2 {
@@ -2347,32 +2347,32 @@ declare namespace _ {
2347
2347
  }
2348
2348
  interface LodashOrderBy1x4<T> {
2349
2349
  (iteratees: lodash.Many<(value: T) => lodash.NotVoid>): LodashOrderBy1x5<T>;
2350
- (iteratees: lodash.__, orders: lodash.Many<boolean | string>): LodashOrderBy1x6<T>;
2351
- (iteratees: lodash.Many<(value: T) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T>>, orders: lodash.Many<boolean | string>): T[];
2350
+ (iteratees: lodash.__, orders: lodash.Many<boolean | "asc" | "desc">): LodashOrderBy1x6<T>;
2351
+ (iteratees: lodash.Many<(value: T) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T>>, orders: lodash.Many<boolean | "asc" | "desc">): T[];
2352
2352
  (iteratees: lodash.Many<lodash.ValueIteratee<T>>): LodashOrderBy2x5<T>;
2353
2353
  }
2354
- type LodashOrderBy1x5<T> = (orders: lodash.Many<boolean|string>) => T[];
2354
+ type LodashOrderBy1x5<T> = (orders: lodash.Many<boolean|"asc"|"desc">) => T[];
2355
2355
  type LodashOrderBy1x6<T> = (iteratees: lodash.Many<(value: T) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T>>) => T[];
2356
2356
  interface LodashOrderBy2x1<T> {
2357
- (orders: lodash.Many<boolean | string>): LodashOrderBy2x3<T>;
2357
+ (orders: lodash.Many<boolean | "asc" | "desc">): LodashOrderBy2x3<T>;
2358
2358
  (orders: lodash.__, collection: lodash.List<T> | null | undefined): LodashOrderBy2x5<T>;
2359
- (orders: lodash.Many<boolean | string>, collection: lodash.List<T> | object | null | undefined): T[];
2359
+ (orders: lodash.Many<boolean | "asc" | "desc">, collection: lodash.List<T> | object | null | undefined): T[];
2360
2360
  <T1 extends object>(orders: lodash.__, collection: T1 | null | undefined): LodashOrderBy4x5<T>;
2361
2361
  }
2362
2362
  interface LodashOrderBy2x3<T> {
2363
2363
  (collection: lodash.List<T> | null | undefined): T[];
2364
2364
  (collection: object | null | undefined): object[];
2365
2365
  }
2366
- type LodashOrderBy2x5<T> = (orders: lodash.Many<boolean|string>) => T[];
2366
+ type LodashOrderBy2x5<T> = (orders: lodash.Many<boolean|"asc"|"desc">) => T[];
2367
2367
  interface LodashOrderBy3x4<T> {
2368
2368
  (iteratees: lodash.Many<(value: T[keyof T]) => lodash.NotVoid>): LodashOrderBy3x5<T>;
2369
- (iteratees: lodash.__, orders: lodash.Many<boolean | string>): LodashOrderBy3x6<T>;
2370
- (iteratees: lodash.Many<(value: T[keyof T]) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T[keyof T]>>, orders: lodash.Many<boolean | string>): Array<T[keyof T]>;
2369
+ (iteratees: lodash.__, orders: lodash.Many<boolean | "asc" | "desc">): LodashOrderBy3x6<T>;
2370
+ (iteratees: lodash.Many<(value: T[keyof T]) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T[keyof T]>>, orders: lodash.Many<boolean | "asc" | "desc">): Array<T[keyof T]>;
2371
2371
  (iteratees: lodash.Many<lodash.ValueIteratee<T[keyof T]>>): LodashOrderBy4x5<T>;
2372
2372
  }
2373
- type LodashOrderBy3x5<T> = (orders: lodash.Many<boolean|string>) => Array<T[keyof T]>;
2373
+ type LodashOrderBy3x5<T> = (orders: lodash.Many<boolean|"asc"|"desc">) => Array<T[keyof T]>;
2374
2374
  type LodashOrderBy3x6<T> = (iteratees: lodash.Many<(value: T[keyof T]) => lodash.NotVoid> | lodash.Many<lodash.ValueIteratee<T[keyof T]>>) => Array<T[keyof T]>;
2375
- type LodashOrderBy4x5<T> = (orders: lodash.Many<boolean|string>) => Array<T[keyof T]>;
2375
+ type LodashOrderBy4x5<T> = (orders: lodash.Many<boolean|"asc"|"desc">) => Array<T[keyof T]>;
2376
2376
  interface LodashOverArgs {
2377
2377
  (func: (...args: any[]) => any): LodashOverArgs1x1;
2378
2378
  (func: lodash.__, transforms: lodash.Many<(...args: any[]) => any>): LodashOverArgs1x2;
@@ -2887,28 +2887,35 @@ declare namespace _ {
2887
2887
  type LodashPick2x1 = <T>(object: T | null | undefined) => lodash.PartialDeep<T>;
2888
2888
  type LodashPick2x2<T> = (props: lodash.PropertyPath) => lodash.PartialDeep<T>;
2889
2889
  interface LodashPickBy {
2890
- <T extends object, S extends T[keyof T]>(predicate: lodash.ValueIteratorTypeGuard<T[keyof T], S>): LodashPickBy1x1<T, S>;
2891
- <T extends object>(predicate: lodash.__, object: T | null | undefined): LodashPickBy1x2<T>;
2892
- <T extends object, S extends T[keyof T]>(predicate: lodash.ValueIteratorTypeGuard<T[keyof T], S>, object: T | null | undefined): lodash.Dictionary<S>;
2893
- <T>(predicate: lodash.ValueKeyIteratee<T>): LodashPickBy2x1<T>;
2894
- <T>(predicate: lodash.__, object: lodash.Dictionary<T> | null | undefined): LodashPickBy2x2<T>;
2890
+ <T, S extends T>(predicate: lodash.ValueKeyIterateeTypeGuard<T, S>): LodashPickBy1x1<T, S>;
2891
+ <T>(predicate: lodash.__, object: lodash.Dictionary<T> | null | undefined): LodashPickBy1x2<T>;
2892
+ <T, S extends T>(predicate: lodash.ValueKeyIterateeTypeGuard<T, S>, object: lodash.Dictionary<T> | null | undefined): lodash.Dictionary<S>;
2893
+ <T>(predicate: lodash.__, object: lodash.NumericDictionary<T> | null | undefined): LodashPickBy2x2<T>;
2894
+ <T, S extends T>(predicate: lodash.ValueKeyIterateeTypeGuard<T, S>, object: lodash.NumericDictionary<T> | null | undefined): lodash.NumericDictionary<S>;
2895
+ <T>(predicate: lodash.ValueKeyIteratee<T>): LodashPickBy3x1<T>;
2895
2896
  <T>(predicate: lodash.ValueKeyIteratee<T>, object: lodash.Dictionary<T> | null | undefined): lodash.Dictionary<T>;
2896
- <T>(predicate: lodash.__, object: lodash.NumericDictionary<T> | null | undefined): LodashPickBy3x2<T>;
2897
2897
  <T>(predicate: lodash.ValueKeyIteratee<T>, object: lodash.NumericDictionary<T> | null | undefined): lodash.NumericDictionary<T>;
2898
+ <T extends object>(predicate: lodash.__, object: T | null | undefined): LodashPickBy5x2<T>;
2898
2899
  <T extends object>(predicate: lodash.ValueKeyIteratee<T[keyof T]>, object: T | null | undefined): lodash.PartialObject<T>;
2899
2900
  }
2900
- type LodashPickBy1x1<T, S> = (object: T | null | undefined) => lodash.Dictionary<S>;
2901
+ interface LodashPickBy1x1<T, S> {
2902
+ (object: lodash.Dictionary<T> | null | undefined): lodash.Dictionary<S>;
2903
+ (object: lodash.NumericDictionary<T> | null | undefined): lodash.NumericDictionary<S>;
2904
+ }
2901
2905
  interface LodashPickBy1x2<T> {
2902
- <S extends T[keyof T]>(predicate: lodash.ValueIteratorTypeGuard<T[keyof T], S>): lodash.Dictionary<S>;
2903
- (predicate: lodash.ValueKeyIteratee<T[keyof T]>): lodash.PartialObject<T>;
2906
+ <S extends T>(predicate: lodash.ValueKeyIterateeTypeGuard<T, S>): lodash.Dictionary<S>;
2907
+ (predicate: lodash.ValueKeyIteratee<T>): lodash.Dictionary<T>;
2908
+ }
2909
+ interface LodashPickBy2x2<T> {
2910
+ <S extends T>(predicate: lodash.ValueKeyIterateeTypeGuard<T, S>): lodash.NumericDictionary<S>;
2911
+ (predicate: lodash.ValueKeyIteratee<T>): lodash.NumericDictionary<T>;
2904
2912
  }
2905
- interface LodashPickBy2x1<T> {
2913
+ interface LodashPickBy3x1<T> {
2906
2914
  (object: lodash.Dictionary<T> | null | undefined): lodash.Dictionary<T>;
2907
2915
  (object: lodash.NumericDictionary<T> | null | undefined): lodash.NumericDictionary<T>;
2908
2916
  <T1 extends object>(object: T1 | null | undefined): lodash.PartialObject<T1>;
2909
2917
  }
2910
- type LodashPickBy2x2<T> = (predicate: lodash.ValueKeyIteratee<T>) => lodash.Dictionary<T>;
2911
- type LodashPickBy3x2<T> = (predicate: lodash.ValueKeyIteratee<T>) => lodash.NumericDictionary<T>;
2918
+ type LodashPickBy5x2<T> = (predicate: lodash.ValueKeyIteratee<T[keyof T]>) => lodash.PartialObject<T>;
2912
2919
  interface LodashProp {
2913
2920
  <TObject extends object, TKey extends keyof TObject>(path: TKey | [TKey]): LodashProp1x1<TObject, TKey>;
2914
2921
  <TObject extends object>(path: lodash.__, object: TObject): LodashProp1x2<TObject>;
lodash/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "4.14.113",
3
+ "version": "4.14.117",
4
4
  "description": "TypeScript definitions for Lo-Dash",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -57,6 +57,6 @@
57
57
  },
58
58
  "scripts": {},
59
59
  "dependencies": {},
60
- "typesPublisherContentHash": "900faacd1270d9fadc2fdfca83c2b40d9511033eae56982fe555463a4cfdbe8a",
60
+ "typesPublisherContentHash": "38f3ad6f654dbbc6177d1a48789d97a031c98906880fa6dd57620631b1ed58b2",
61
61
  "typeScriptVersion": "2.6"
62
62
  }