@types/lodash 4.14.130 → 4.14.134

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, 20 May 2019 16:05:06 GMT
11
+ * Last updated: Thu, 06 Jun 2019 19:36:54 GMT
12
12
  * Dependencies: none
13
13
  * Global values: _
14
14
 
lodash/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "4.14.130",
3
+ "version": "4.14.134",
4
4
  "description": "TypeScript definitions for Lo-Dash",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -61,6 +61,6 @@
61
61
  },
62
62
  "scripts": {},
63
63
  "dependencies": {},
64
- "typesPublisherContentHash": "4bce5340f965500bac960a38a9629f2c54b32d454d361805cef45fcc90ff4950",
64
+ "typesPublisherContentHash": "fc91a5081a7ad5b77fe61deac05b6221e53c85402571e0fef723bd7fb5bf9e4f",
65
65
  "typeScriptVersion": "2.8"
66
66
  }
@@ -1018,6 +1018,12 @@ declare module "../index" {
1018
1018
  */
1019
1019
  includes(target: T, fromIndex?: number): boolean;
1020
1020
  }
1021
+ interface String {
1022
+ /**
1023
+ * @see _.includes
1024
+ */
1025
+ includes(target: string, fromIndex?: number): boolean;
1026
+ }
1021
1027
  interface ObjectChain<T> {
1022
1028
  /**
1023
1029
  * @see _.includes
@@ -1030,6 +1036,12 @@ declare module "../index" {
1030
1036
  */
1031
1037
  includes(target: T, fromIndex?: number): PrimitiveChain<boolean>;
1032
1038
  }
1039
+ interface StringChain {
1040
+ /**
1041
+ * @see _.includes
1042
+ */
1043
+ includes(target: string, fromIndex?: number): PrimitiveChain<boolean>;
1044
+ }
1033
1045
  interface LoDashStatic {
1034
1046
  /**
1035
1047
  * Invokes the method named by methodName on each element in the collection returning
@@ -1330,7 +1342,7 @@ declare module "../index" {
1330
1342
  /**
1331
1343
  * @see _.orderBy
1332
1344
  */
1333
- orderBy(iteratees?: Many<ListIterator<T, NotVoid>>, orders?: Many<boolean|"asc"|"desc">): Collection<T>;
1345
+ orderBy(iteratees?: Many<ListIterator<T, NotVoid> | PropertyName | PartialShallow<T>>, orders?: Many<boolean|"asc"|"desc">): Collection<T>;
1334
1346
  }
1335
1347
  interface Object<T> {
1336
1348
  /**
@@ -1342,7 +1354,7 @@ declare module "../index" {
1342
1354
  /**
1343
1355
  * @see _.orderBy
1344
1356
  */
1345
- orderBy(iteratees?: Many<ListIterator<T, NotVoid>>, orders?: Many<boolean|"asc"|"desc">): CollectionChain<T>;
1357
+ orderBy(iteratees?: Many<ListIterator<T, NotVoid> | PropertyName | PartialShallow<T>>, orders?: Many<boolean|"asc"|"desc">): CollectionChain<T>;
1346
1358
  }
1347
1359
  interface ObjectChain<T> {
1348
1360
  /**
@@ -210,7 +210,7 @@ declare module "../index" {
210
210
  interface PrimitiveChain<T> extends LoDashExplicitWrapper<T> {
211
211
  }
212
212
  type NotVoid = unknown;
213
- type IterateeShorthand<T> = PropertyName | [PropertyName, any] | PartialDeep<T>;
213
+ type IterateeShorthand<T> = PropertyName | [PropertyName, any] | PartialShallow<T>;
214
214
  type ArrayIterator<T, TResult> = (value: T, index: number, collection: T[]) => TResult;
215
215
  type ListIterator<T, TResult> = (value: T, index: number, collection: List<T>) => TResult;
216
216
  type ListIteratee<T> = ListIterator<T, NotVoid> | IterateeShorthand<T>;
@@ -258,8 +258,8 @@ declare module "../index" {
258
258
  cancel(): void;
259
259
  flush(): void;
260
260
  }
261
- type PartialDeep<T> = {
262
- [P in keyof T]?: PartialDeep<T[P]>;
261
+ type PartialShallow<T> = {
262
+ [P in keyof T]?: T[P] extends object ? object : T[P]
263
263
  };
264
264
  // For backwards compatibility
265
265
  type LoDashImplicitArrayWrapper<T> = LoDashImplicitWrapper<T[]>;
@@ -1902,7 +1902,7 @@ declare module "../index" {
1902
1902
  /**
1903
1903
  * @see _.pick
1904
1904
  */
1905
- pick<T>(object: T | null | undefined, ...props: PropertyPath[]): PartialDeep<T>;
1905
+ pick<T>(object: T | null | undefined, ...props: PropertyPath[]): PartialObject<T>;
1906
1906
  }
1907
1907
  interface Object<T> {
1908
1908
  /**
lodash/ts3.1/fp.d.ts CHANGED
@@ -2747,12 +2747,12 @@ declare namespace _ {
2747
2747
  <T extends object, U extends keyof T>(props: lodash.Many<U>, object: T): Pick<T, U>;
2748
2748
  (props: lodash.PropertyPath): LodashPick2x1;
2749
2749
  <T>(props: lodash.__, object: T | null | undefined): LodashPick2x2<T>;
2750
- <T>(props: lodash.PropertyPath, object: T | null | undefined): lodash.PartialDeep<T>;
2750
+ <T>(props: lodash.PropertyPath, object: T | null | undefined): lodash.PartialObject<T>;
2751
2751
  }
2752
2752
  type LodashPick1x1<T, U extends keyof T> = (object: T) => Pick<T, U>;
2753
2753
  type LodashPick1x2<T> = <U extends keyof T>(props: lodash.Many<U>) => Pick<T, U>;
2754
- type LodashPick2x1 = <T>(object: T | null | undefined) => lodash.PartialDeep<T>;
2755
- type LodashPick2x2<T> = (props: lodash.PropertyPath) => lodash.PartialDeep<T>;
2754
+ type LodashPick2x1 = <T>(object: T | null | undefined) => lodash.PartialObject<T>;
2755
+ type LodashPick2x2<T> = (props: lodash.PropertyPath) => lodash.PartialObject<T>;
2756
2756
  interface LodashPickBy {
2757
2757
  <T, S extends T>(predicate: lodash.ValueKeyIterateeTypeGuard<T, S>): LodashPickBy1x1<T, S>;
2758
2758
  <T>(predicate: lodash.__, object: lodash.Dictionary<T> | null | undefined): LodashPickBy1x2<T>;