@types/lodash 4.14.164 → 4.14.168
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/common/array.d.ts +1 -1
- lodash/common/common.d.ts +1 -1
- lodash/common/object.d.ts +16 -4
- lodash/fp.d.ts +1 -1
- lodash/package.json +3 -3
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: Mon, 18 Jan 2021 15:06:13 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `_`
|
|
14
14
|
|
lodash/common/array.d.ts
CHANGED
|
@@ -1427,7 +1427,7 @@ declare module "../index" {
|
|
|
1427
1427
|
* @example
|
|
1428
1428
|
*
|
|
1429
1429
|
* _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
|
|
1430
|
-
* // => [1.1, 2.
|
|
1430
|
+
* // => [1.1, 2.3]
|
|
1431
1431
|
*/
|
|
1432
1432
|
sortedUniqBy<T>(array: List<T> | null | undefined, iteratee: ValueIteratee<T>): T[];
|
|
1433
1433
|
}
|
lodash/common/common.d.ts
CHANGED
|
@@ -231,7 +231,7 @@ declare module "../index" {
|
|
|
231
231
|
type MemoIteratorCapped<T, TResult> = (prev: TResult, curr: T) => TResult;
|
|
232
232
|
type MemoIteratorCappedRight<T, TResult> = (curr: T, prev: TResult) => TResult;
|
|
233
233
|
type MemoVoidArrayIterator<T, TResult> = (acc: TResult, curr: T, index: number, arr: T[]) => void;
|
|
234
|
-
type MemoVoidDictionaryIterator<T, TResult> = (acc: TResult, curr: T, key:
|
|
234
|
+
type MemoVoidDictionaryIterator<T, K extends string | number | symbol, TResult> = (acc: TResult, curr: T, key: K, dict: Record<K, T>) => void;
|
|
235
235
|
type MemoVoidIteratorCapped<T, TResult> = (acc: TResult, curr: T) => void;
|
|
236
236
|
type ValueIteratee<T> = ((value: T) => NotVoid) | IterateeShorthand<T>;
|
|
237
237
|
type ValueIterateeCustom<T, TResult> = ((value: T) => TResult) | IterateeShorthand<T>;
|
lodash/common/object.d.ts
CHANGED
|
@@ -2263,11 +2263,15 @@ declare module "../index" {
|
|
|
2263
2263
|
* @param accumulator The custom accumulator value.
|
|
2264
2264
|
* @return Returns the accumulated value.
|
|
2265
2265
|
*/
|
|
2266
|
-
transform<T, TResult>(object: T
|
|
2266
|
+
transform<T, TResult>(object: ReadonlyArray<T>, iteratee: MemoVoidArrayIterator<T, TResult>, accumulator?: TResult): TResult;
|
|
2267
2267
|
/**
|
|
2268
2268
|
* @see _.transform
|
|
2269
2269
|
*/
|
|
2270
|
-
transform<T, TResult>(object: Dictionary<T>, iteratee: MemoVoidDictionaryIterator<T, TResult>, accumulator?: TResult): TResult;
|
|
2270
|
+
transform<T, TResult>(object: Dictionary<T>, iteratee: MemoVoidDictionaryIterator<T, string, TResult>, accumulator?: TResult): TResult;
|
|
2271
|
+
/**
|
|
2272
|
+
* @see _.transform
|
|
2273
|
+
*/
|
|
2274
|
+
transform<T extends object, TResult>(object: T, iteratee: MemoVoidDictionaryIterator<T[keyof T], keyof T, TResult>, accumulator?: TResult): TResult;
|
|
2271
2275
|
/**
|
|
2272
2276
|
* @see _.transform
|
|
2273
2277
|
*/
|
|
@@ -2291,7 +2295,11 @@ declare module "../index" {
|
|
|
2291
2295
|
/**
|
|
2292
2296
|
* @see _.transform
|
|
2293
2297
|
*/
|
|
2294
|
-
transform<TResult>(iteratee: MemoVoidDictionaryIterator<T[keyof T], TResult>, accumulator?: TResult): ImpChain<TResult>;
|
|
2298
|
+
transform<TResult>(iteratee: MemoVoidDictionaryIterator<T[keyof T], string, TResult>, accumulator?: TResult): ImpChain<TResult>;
|
|
2299
|
+
/**
|
|
2300
|
+
* @see _.transform
|
|
2301
|
+
*/
|
|
2302
|
+
transform<TResult>(iteratee: MemoVoidDictionaryIterator<T[keyof T], keyof T, TResult>, accumulator?: TResult): ImpChain<TResult>;
|
|
2295
2303
|
/**
|
|
2296
2304
|
* @see _.transform
|
|
2297
2305
|
*/
|
|
@@ -2311,7 +2319,11 @@ declare module "../index" {
|
|
|
2311
2319
|
/**
|
|
2312
2320
|
* @see _.transform
|
|
2313
2321
|
*/
|
|
2314
|
-
transform<TResult>(iteratee: MemoVoidDictionaryIterator<T[keyof T], TResult>, accumulator?: TResult): ExpChain<TResult>;
|
|
2322
|
+
transform<TResult>(iteratee: MemoVoidDictionaryIterator<T[keyof T], string, TResult>, accumulator?: TResult): ExpChain<TResult>;
|
|
2323
|
+
/**
|
|
2324
|
+
* @see _.transform
|
|
2325
|
+
*/
|
|
2326
|
+
transform<TResult>(iteratee: MemoVoidDictionaryIterator<T[keyof T], keyof T, TResult>, accumulator?: TResult): ExpChain<TResult>;
|
|
2315
2327
|
/**
|
|
2316
2328
|
* @see _.transform
|
|
2317
2329
|
*/
|
lodash/fp.d.ts
CHANGED
|
@@ -299,7 +299,7 @@ declare namespace _ {
|
|
|
299
299
|
<TResult>(customizer: lodash.CloneWithCustomizer<T, TResult | undefined>): TResult | T;
|
|
300
300
|
}
|
|
301
301
|
type LodashCloneWith2x1<T, TResult> = (value: T) => TResult | T;
|
|
302
|
-
type LodashCompact = <T>(array: lodash.List<T | null | undefined
|
|
302
|
+
type LodashCompact = <T>(array: lodash.List<T> | null | undefined) => Array<Exclude<T, null | undefined | false | "" | 0>>;
|
|
303
303
|
type LodashNegate = <T extends any[]>(predicate: (...args: T) => any) => (...args: T) => boolean;
|
|
304
304
|
interface LodashFlowRight {
|
|
305
305
|
<A extends any[], R1, R2, R3, R4, R5, R6, R7>(f7: (a: R6) => R7, f6: (a: R5) => R6, f5: (a: R4) => R5, f4: (a: R3) => R4, f3: (a: R2) => R3, f2: (a: R1) => R2, f1: (...args: A) => R1): (...args: A) => R7;
|
lodash/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/lodash",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.168",
|
|
4
4
|
"description": "TypeScript definitions for Lo-Dash",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -59,6 +59,6 @@
|
|
|
59
59
|
},
|
|
60
60
|
"scripts": {},
|
|
61
61
|
"dependencies": {},
|
|
62
|
-
"typesPublisherContentHash": "
|
|
63
|
-
"typeScriptVersion": "3.
|
|
62
|
+
"typesPublisherContentHash": "4829f7ac23028c3eca917a9fb612e9b559d688639097c176e090c09ccee48261",
|
|
63
|
+
"typeScriptVersion": "3.4"
|
|
64
64
|
}
|