@types/lodash 4.14.165 → 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 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: Thu, 05 Nov 2020 18:49:10 GMT
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: string, dict: Dictionary<T>) => void;
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
@@ -2267,7 +2267,11 @@ declare module "../index" {
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.165",
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": "a0c674f8ec64ae7e57c9e07ebe509a5a0d5e2e54f46cf68da4b15596a19260b0",
63
- "typeScriptVersion": "3.2"
62
+ "typesPublisherContentHash": "52a99d870b7195d65210576e3ee7356db5f7dc73453b4dfb1cffeab83f0f3f4f",
63
+ "typeScriptVersion": "3.3"
64
64
  }