@types/lodash 4.14.115 → 4.14.116

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 (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: Sat, 28 Jul 2018 00:44:17 GMT
11
+ * Last updated: Fri, 03 Aug 2018 01:26:21 GMT
12
12
  * Dependencies: none
13
13
  * Global values: _
14
14
 
lodash/common/common.d.ts CHANGED
@@ -212,6 +212,7 @@ declare module "../index" {
212
212
  type ValueIterateeCustom<T, TResult> = ((value: T) => TResult) | IterateeShorthand<T>;
213
213
  type ValueIteratorTypeGuard<T, S extends T> = (value: T) => value is S;
214
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;
215
216
  type Comparator<T> = (a: T, b: T) => boolean;
216
217
  type Comparator2<T1, T2> = (a: T1, b: T2) => boolean;
217
218
 
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
@@ -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.115",
3
+ "version": "4.14.116",
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": "38281b155d85a93cdcec93a1c9314de9772f86a2b159852774ae52b07678cf44",
60
+ "typesPublisherContentHash": "af06d9f4d97ed2d9f5b3e47f88c0d02e5e430d399b1abebc63b011acda82e9ba",
61
61
  "typeScriptVersion": "2.6"
62
62
  }