@types/lodash 4.14.162 → 4.14.166
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/common.d.ts +1 -1
- lodash/common/function.d.ts +1 -1
- lodash/common/lang.d.ts +0 -1
- lodash/common/object.d.ts +16 -4
- 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: Wed, 23 Dec 2020 21:43:18 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `_`
|
|
14
14
|
|
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/function.d.ts
CHANGED
|
@@ -529,7 +529,7 @@ declare module "../index" {
|
|
|
529
529
|
* @return Returns the new memoizing function.
|
|
530
530
|
*/
|
|
531
531
|
memoize: {
|
|
532
|
-
<T extends (...args: any) => any>(func: T, resolver?: (...args:
|
|
532
|
+
<T extends (...args: any) => any>(func: T, resolver?: (...args: Parameters<T>) => any): T & MemoizedFunction;
|
|
533
533
|
Cache: MapCacheConstructor;
|
|
534
534
|
};
|
|
535
535
|
}
|
lodash/common/lang.d.ts
CHANGED
|
@@ -450,7 +450,6 @@ declare module "../index" {
|
|
|
450
450
|
* // => false
|
|
451
451
|
*/
|
|
452
452
|
isArrayLikeObject<T extends { __lodashAnyHack: any }>(value: T): boolean;
|
|
453
|
-
// tslint:disable-next-line:ban-types (type guard doesn't seem to work correctly without the Function type)
|
|
454
453
|
/**
|
|
455
454
|
* @see _.isArrayLikeObject
|
|
456
455
|
*/
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/lodash",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.166",
|
|
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": "52a99d870b7195d65210576e3ee7356db5f7dc73453b4dfb1cffeab83f0f3f4f",
|
|
63
|
+
"typeScriptVersion": "3.3"
|
|
64
64
|
}
|