@@ -2229,7 +2229,7 @@ declare module _ {
2229
2229
**/
2230
2230
countBy < T > (
2231
2231
collection : Dictionary < T > ,
2232
- callback ?: ListIterator < T , any > ,
2232
+ callback ?: DictionaryIterator < T , any > ,
2233
2233
thisArg ?: any ) : Dictionary < number > ;
2234
2234
2235
2235
/**
@@ -2314,7 +2314,7 @@ declare module _ {
2314
2314
**/
2315
2315
every < T > (
2316
2316
collection : Dictionary < T > ,
2317
- callback ?: ListIterator < T , boolean > ,
2317
+ callback ?: DictionaryIterator < T , boolean > ,
2318
2318
thisArg ?: any ) : boolean ;
2319
2319
2320
2320
/**
@@ -2386,7 +2386,7 @@ declare module _ {
2386
2386
**/
2387
2387
all < T > (
2388
2388
collection : Dictionary < T > ,
2389
- callback ?: ListIterator < T , boolean > ,
2389
+ callback ?: DictionaryIterator < T , boolean > ,
2390
2390
thisArg ?: any ) : boolean ;
2391
2391
2392
2392
/**
@@ -2473,7 +2473,7 @@ declare module _ {
2473
2473
**/
2474
2474
filter < T > (
2475
2475
collection : Dictionary < T > ,
2476
- callback : ListIterator < T , boolean > ,
2476
+ callback : DictionaryIterator < T , boolean > ,
2477
2477
thisArg ?: any ) : T [ ] ;
2478
2478
2479
2479
/**
@@ -2545,7 +2545,7 @@ declare module _ {
2545
2545
**/
2546
2546
select < T > (
2547
2547
collection : Dictionary < T > ,
2548
- callback : ListIterator < T , boolean > ,
2548
+ callback : DictionaryIterator < T , boolean > ,
2549
2549
thisArg ?: any ) : T [ ] ;
2550
2550
2551
2551
/**
@@ -2685,7 +2685,7 @@ declare module _ {
2685
2685
**/
2686
2686
find < T > (
2687
2687
collection : Dictionary < T > ,
2688
- callback : ListIterator < T , boolean > ,
2688
+ callback : DictionaryIterator < T , boolean > ,
2689
2689
thisArg ?: any ) : T ;
2690
2690
2691
2691
/**
@@ -2757,7 +2757,7 @@ declare module _ {
2757
2757
**/
2758
2758
detect < T > (
2759
2759
collection : Dictionary < T > ,
2760
- callback : ListIterator < T , boolean > ,
2760
+ callback : DictionaryIterator < T , boolean > ,
2761
2761
thisArg ?: any ) : T ;
2762
2762
2763
2763
/**
@@ -2829,7 +2829,7 @@ declare module _ {
2829
2829
**/
2830
2830
findWhere < T > (
2831
2831
collection : Dictionary < T > ,
2832
- callback : ListIterator < T , boolean > ,
2832
+ callback : DictionaryIterator < T , boolean > ,
2833
2833
thisArg ?: any ) : T ;
2834
2834
2835
2835
/**
@@ -2931,7 +2931,7 @@ declare module _ {
2931
2931
**/
2932
2932
findLast < T > (
2933
2933
collection : Dictionary < T > ,
2934
- callback : ListIterator < T , boolean > ,
2934
+ callback : DictionaryIterator < T , boolean > ,
2935
2935
thisArg ?: any ) : T ;
2936
2936
2937
2937
/**
@@ -3033,7 +3033,7 @@ declare module _ {
3033
3033
**/
3034
3034
forEach < T extends { } > (
3035
3035
object : Dictionary < T > ,
3036
- callback : ObjectIterator < T , void > ,
3036
+ callback : DictionaryIterator < T , void > ,
3037
3037
thisArg ?: any ) : Dictionary < T > ;
3038
3038
3039
3039
/**
@@ -3068,7 +3068,7 @@ declare module _ {
3068
3068
**/
3069
3069
each < T extends { } > (
3070
3070
object : Dictionary < T > ,
3071
- callback : ObjectIterator < T , void > ,
3071
+ callback : DictionaryIterator < T , void > ,
3072
3072
thisArg ?: any ) : Dictionary < T > ;
3073
3073
3074
3074
/**
@@ -3139,7 +3139,7 @@ declare module _ {
3139
3139
**/
3140
3140
forEachRight < T extends { } > (
3141
3141
object : Dictionary < T > ,
3142
- callback : ObjectIterator < T , void > ,
3142
+ callback : DictionaryIterator < T , void > ,
3143
3143
thisArg ?: any ) : Dictionary < T > ;
3144
3144
3145
3145
/**
@@ -3166,7 +3166,7 @@ declare module _ {
3166
3166
**/
3167
3167
eachRight < T extends { } > (
3168
3168
object : Dictionary < T > ,
3169
- callback : ObjectIterator < T , void > ,
3169
+ callback : DictionaryIterator < T , void > ,
3170
3170
thisArg ?: any ) : Dictionary < T > ;
3171
3171
}
3172
3172
@@ -3272,7 +3272,7 @@ declare module _ {
3272
3272
**/
3273
3273
groupBy < T > (
3274
3274
collection : Dictionary < T > ,
3275
- callback ?: ListIterator < T , any > ,
3275
+ callback ?: DictionaryIterator < T , any > ,
3276
3276
thisArg ?: any ) : Dictionary < T [ ] > ;
3277
3277
3278
3278
/**
@@ -3494,7 +3494,7 @@ declare module _ {
3494
3494
**/
3495
3495
map < T extends { } , TResult > (
3496
3496
object : Dictionary < T > ,
3497
- callback : ObjectIterator < T , TResult > ,
3497
+ callback : DictionaryIterator < T , TResult > ,
3498
3498
thisArg ?: any ) : TResult [ ] ;
3499
3499
3500
3500
/**
@@ -3534,7 +3534,7 @@ declare module _ {
3534
3534
**/
3535
3535
collect < T extends { } , TResult > (
3536
3536
object : Dictionary < T > ,
3537
- callback : ObjectIterator < T , TResult > ,
3537
+ callback : DictionaryIterator < T , TResult > ,
3538
3538
thisArg ?: any ) : TResult [ ] ;
3539
3539
3540
3540
/**
@@ -3633,7 +3633,7 @@ declare module _ {
3633
3633
**/
3634
3634
max < T > (
3635
3635
collection : Dictionary < T > ,
3636
- callback ?: ListIterator < T , any > ,
3636
+ callback ?: DictionaryIterator < T , any > ,
3637
3637
thisArg ?: any ) : T ;
3638
3638
3639
3639
/**
@@ -4266,7 +4266,7 @@ declare module _ {
4266
4266
**/
4267
4267
reject < T > (
4268
4268
collection : Dictionary < T > ,
4269
- callback : ListIterator < T , boolean > ,
4269
+ callback : DictionaryIterator < T , boolean > ,
4270
4270
thisArg ?: any ) : T [ ] ;
4271
4271
4272
4272
/**
@@ -4463,7 +4463,7 @@ declare module _ {
4463
4463
**/
4464
4464
some < T > (
4465
4465
collection : Dictionary < T > ,
4466
- callback ?: ListIterator < T , boolean > ,
4466
+ callback ?: DictionaryIterator < T , boolean > ,
4467
4467
thisArg ?: any ) : boolean ;
4468
4468
4469
4469
/**
@@ -4543,7 +4543,7 @@ declare module _ {
4543
4543
**/
4544
4544
any < T > (
4545
4545
collection : Dictionary < T > ,
4546
- callback ?: ListIterator < T , boolean > ,
4546
+ callback ?: DictionaryIterator < T , boolean > ,
4547
4547
thisArg ?: any ) : boolean ;
4548
4548
4549
4549
/**
@@ -5486,7 +5486,7 @@ declare module _ {
5486
5486
**/
5487
5487
forIn < T > (
5488
5488
object : Dictionary < T > ,
5489
- callback ?: ObjectIterator < T , void > ,
5489
+ callback ?: DictionaryIterator < T , void > ,
5490
5490
thisArg ?: any ) : Dictionary < T > ;
5491
5491
5492
5492
/**
@@ -5519,7 +5519,7 @@ declare module _ {
5519
5519
**/
5520
5520
forInRight < T extends { } > (
5521
5521
object : Dictionary < T > ,
5522
- callback ?: ObjectIterator < T , void > ,
5522
+ callback ?: DictionaryIterator < T , void > ,
5523
5523
thisArg ?: any ) : Dictionary < T > ;
5524
5524
5525
5525
/**
@@ -5553,7 +5553,7 @@ declare module _ {
5553
5553
**/
5554
5554
forOwn < T extends { } > (
5555
5555
object : Dictionary < T > ,
5556
- callback ?: ObjectIterator < T , void > ,
5556
+ callback ?: DictionaryIterator < T , void > ,
5557
5557
thisArg ?: any ) : Dictionary < T > ;
5558
5558
5559
5559
/**
@@ -5586,7 +5586,7 @@ declare module _ {
5586
5586
**/
5587
5587
forOwnRight < T extends { } > (
5588
5588
object : Dictionary < T > ,
5589
- callback ?: ObjectIterator < T , void > ,
5589
+ callback ?: DictionaryIterator < T , void > ,
5590
5590
thisArg ?: any ) : Dictionary < T > ;
5591
5591
/**
5592
5592
* @see _.forOwnRight
@@ -6380,11 +6380,15 @@ declare module _ {
6380
6380
}
6381
6381
6382
6382
interface ListIterator < T , TResult > {
6383
- ( value : T , index : number , list : T [ ] ) : TResult ;
6383
+ ( value : T , index : number , collection : T [ ] ) : TResult ;
6384
+ }
6385
+
6386
+ interface DictionaryIterator < T , TResult > {
6387
+ ( value : T , key : string , collection : Dictionary < T > ) : TResult ;
6384
6388
}
6385
6389
6386
6390
interface ObjectIterator < T , TResult > {
6387
- ( element : T , key : string , list : any ) : TResult ;
6391
+ ( element : T , key : string , collection : any ) : TResult ;
6388
6392
}
6389
6393
6390
6394
interface MemoVoidIterator < T , TResult > {
0 commit comments