@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 +1 -1
- lodash/package.json +2 -2
- lodash/ts3.1/common/collection.d.ts +2 -2
- lodash/ts3.1/common/common.d.ts +4 -1
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:
|
|
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.
|
|
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": "
|
|
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 |
|
|
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 |
|
|
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
|
/**
|
lodash/ts3.1/common/common.d.ts
CHANGED
|
@@ -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] |
|
|
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>;
|