@types/lodash 4.14.133 → 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: Fri, 31 May 2019 00:18:00 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.133",
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": "4394df478a3b504405ef6256888090f9267fbeefbb14de808af395fc9f381670",
64
+ "typesPublisherContentHash": "fc91a5081a7ad5b77fe61deac05b6221e53c85402571e0fef723bd7fb5bf9e4f",
65
65
  "typeScriptVersion": "2.8"
66
66
  }
@@ -1342,7 +1342,7 @@ declare module "../index" {
1342
1342
  /**
1343
1343
  * @see _.orderBy
1344
1344
  */
1345
- orderBy(iteratees?: Many<ListIterator<T, NotVoid> | PropertyName | PartialObject<T>>, orders?: Many<boolean|"asc"|"desc">): Collection<T>;
1345
+ orderBy(iteratees?: Many<ListIterator<T, NotVoid> | PropertyName | PartialShallow<T>>, orders?: Many<boolean|"asc"|"desc">): Collection<T>;
1346
1346
  }
1347
1347
  interface Object<T> {
1348
1348
  /**
@@ -1354,7 +1354,7 @@ declare module "../index" {
1354
1354
  /**
1355
1355
  * @see _.orderBy
1356
1356
  */
1357
- orderBy(iteratees?: Many<ListIterator<T, NotVoid> | PropertyName | PartialObject<T>>, orders?: Many<boolean|"asc"|"desc">): CollectionChain<T>;
1357
+ orderBy(iteratees?: Many<ListIterator<T, NotVoid> | PropertyName | PartialShallow<T>>, orders?: Many<boolean|"asc"|"desc">): CollectionChain<T>;
1358
1358
  }
1359
1359
  interface ObjectChain<T> {
1360
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] | PartialObject<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,6 +258,9 @@ declare module "../index" {
258
258
  cancel(): void;
259
259
  flush(): void;
260
260
  }
261
+ type PartialShallow<T> = {
262
+ [P in keyof T]?: T[P] extends object ? object : T[P]
263
+ };
261
264
  // For backwards compatibility
262
265
  type LoDashImplicitArrayWrapper<T> = LoDashImplicitWrapper<T[]>;
263
266
  type LoDashImplicitNillableArrayWrapper<T> = LoDashImplicitWrapper<T[] | null | undefined>;