@@ -2253,7 +2253,7 @@ declare module _ {
2253
2253
**/
2254
2254
countBy < T > (
2255
2255
collection : Dictionary < T > ,
2256
- callback ?: ListIterator < T , any > ,
2256
+ callback ?: DictionaryIterator < T , any > ,
2257
2257
thisArg ?: any ) : Dictionary < number > ;
2258
2258
2259
2259
/**
@@ -2338,7 +2338,7 @@ declare module _ {
2338
2338
**/
2339
2339
every < T > (
2340
2340
collection : Dictionary < T > ,
2341
- callback ?: ListIterator < T , boolean > ,
2341
+ callback ?: DictionaryIterator < T , boolean > ,
2342
2342
thisArg ?: any ) : boolean ;
2343
2343
2344
2344
/**
@@ -2410,7 +2410,7 @@ declare module _ {
2410
2410
**/
2411
2411
all < T > (
2412
2412
collection : Dictionary < T > ,
2413
- callback ?: ListIterator < T , boolean > ,
2413
+ callback ?: DictionaryIterator < T , boolean > ,
2414
2414
thisArg ?: any ) : boolean ;
2415
2415
2416
2416
/**
@@ -2497,7 +2497,7 @@ declare module _ {
2497
2497
**/
2498
2498
filter < T > (
2499
2499
collection : Dictionary < T > ,
2500
- callback : ListIterator < T , boolean > ,
2500
+ callback : DictionaryIterator < T , boolean > ,
2501
2501
thisArg ?: any ) : T [ ] ;
2502
2502
2503
2503
/**
@@ -2569,7 +2569,7 @@ declare module _ {
2569
2569
**/
2570
2570
select < T > (
2571
2571
collection : Dictionary < T > ,
2572
- callback : ListIterator < T , boolean > ,
2572
+ callback : DictionaryIterator < T , boolean > ,
2573
2573
thisArg ?: any ) : T [ ] ;
2574
2574
2575
2575
/**
@@ -2709,7 +2709,7 @@ declare module _ {
2709
2709
**/
2710
2710
find < T > (
2711
2711
collection : Dictionary < T > ,
2712
- callback : ListIterator < T , boolean > ,
2712
+ callback : DictionaryIterator < T , boolean > ,
2713
2713
thisArg ?: any ) : T ;
2714
2714
2715
2715
/**
@@ -2781,7 +2781,7 @@ declare module _ {
2781
2781
**/
2782
2782
detect < T > (
2783
2783
collection : Dictionary < T > ,
2784
- callback : ListIterator < T , boolean > ,
2784
+ callback : DictionaryIterator < T , boolean > ,
2785
2785
thisArg ?: any ) : T ;
2786
2786
2787
2787
/**
@@ -2853,7 +2853,7 @@ declare module _ {
2853
2853
**/
2854
2854
findWhere < T > (
2855
2855
collection : Dictionary < T > ,
2856
- callback : ListIterator < T , boolean > ,
2856
+ callback : DictionaryIterator < T , boolean > ,
2857
2857
thisArg ?: any ) : T ;
2858
2858
2859
2859
/**
@@ -2955,7 +2955,7 @@ declare module _ {
2955
2955
**/
2956
2956
findLast < T > (
2957
2957
collection : Dictionary < T > ,
2958
- callback : ListIterator < T , boolean > ,
2958
+ callback : DictionaryIterator < T , boolean > ,
2959
2959
thisArg ?: any ) : T ;
2960
2960
2961
2961
/**
@@ -3057,7 +3057,7 @@ declare module _ {
3057
3057
**/
3058
3058
forEach < T extends { } > (
3059
3059
object : Dictionary < T > ,
3060
- callback : ObjectIterator < T , void > ,
3060
+ callback : DictionaryIterator < T , void > ,
3061
3061
thisArg ?: any ) : Dictionary < T > ;
3062
3062
3063
3063
/**
@@ -3092,7 +3092,7 @@ declare module _ {
3092
3092
**/
3093
3093
each < T extends { } > (
3094
3094
object : Dictionary < T > ,
3095
- callback : ObjectIterator < T , void > ,
3095
+ callback : DictionaryIterator < T , void > ,
3096
3096
thisArg ?: any ) : Dictionary < T > ;
3097
3097
3098
3098
/**
@@ -3163,7 +3163,7 @@ declare module _ {
3163
3163
**/
3164
3164
forEachRight < T extends { } > (
3165
3165
object : Dictionary < T > ,
3166
- callback : ObjectIterator < T , void > ,
3166
+ callback : DictionaryIterator < T , void > ,
3167
3167
thisArg ?: any ) : Dictionary < T > ;
3168
3168
3169
3169
/**
@@ -3190,7 +3190,7 @@ declare module _ {
3190
3190
**/
3191
3191
eachRight < T extends { } > (
3192
3192
object : Dictionary < T > ,
3193
- callback : ObjectIterator < T , void > ,
3193
+ callback : DictionaryIterator < T , void > ,
3194
3194
thisArg ?: any ) : Dictionary < T > ;
3195
3195
}
3196
3196
@@ -3296,7 +3296,7 @@ declare module _ {
3296
3296
**/
3297
3297
groupBy < T > (
3298
3298
collection : Dictionary < T > ,
3299
- callback ?: ListIterator < T , any > ,
3299
+ callback ?: DictionaryIterator < T , any > ,
3300
3300
thisArg ?: any ) : Dictionary < T [ ] > ;
3301
3301
3302
3302
/**
@@ -3518,7 +3518,7 @@ declare module _ {
3518
3518
**/
3519
3519
map < T extends { } , TResult > (
3520
3520
object : Dictionary < T > ,
3521
- callback : ObjectIterator < T , TResult > ,
3521
+ callback : DictionaryIterator < T , TResult > ,
3522
3522
thisArg ?: any ) : TResult [ ] ;
3523
3523
3524
3524
/**
@@ -3558,7 +3558,7 @@ declare module _ {
3558
3558
**/
3559
3559
collect < T extends { } , TResult > (
3560
3560
object : Dictionary < T > ,
3561
- callback : ObjectIterator < T , TResult > ,
3561
+ callback : DictionaryIterator < T , TResult > ,
3562
3562
thisArg ?: any ) : TResult [ ] ;
3563
3563
3564
3564
/**
@@ -3657,7 +3657,7 @@ declare module _ {
3657
3657
**/
3658
3658
max < T > (
3659
3659
collection : Dictionary < T > ,
3660
- callback ?: ListIterator < T , any > ,
3660
+ callback ?: DictionaryIterator < T , any > ,
3661
3661
thisArg ?: any ) : T ;
3662
3662
3663
3663
/**
@@ -4290,7 +4290,7 @@ declare module _ {
4290
4290
**/
4291
4291
reject < T > (
4292
4292
collection : Dictionary < T > ,
4293
- callback : ListIterator < T , boolean > ,
4293
+ callback : DictionaryIterator < T , boolean > ,
4294
4294
thisArg ?: any ) : T [ ] ;
4295
4295
4296
4296
/**
@@ -4501,7 +4501,7 @@ declare module _ {
4501
4501
**/
4502
4502
some < T > (
4503
4503
collection : Dictionary < T > ,
4504
- callback ?: ListIterator < T , boolean > ,
4504
+ callback ?: DictionaryIterator < T , boolean > ,
4505
4505
thisArg ?: any ) : boolean ;
4506
4506
4507
4507
/**
@@ -4581,7 +4581,7 @@ declare module _ {
4581
4581
**/
4582
4582
any < T > (
4583
4583
collection : Dictionary < T > ,
4584
- callback ?: ListIterator < T , boolean > ,
4584
+ callback ?: DictionaryIterator < T , boolean > ,
4585
4585
thisArg ?: any ) : boolean ;
4586
4586
4587
4587
/**
@@ -5524,7 +5524,7 @@ declare module _ {
5524
5524
**/
5525
5525
forIn < T > (
5526
5526
object : Dictionary < T > ,
5527
- callback ?: ObjectIterator < T , void > ,
5527
+ callback ?: DictionaryIterator < T , void > ,
5528
5528
thisArg ?: any ) : Dictionary < T > ;
5529
5529
5530
5530
/**
@@ -5557,7 +5557,7 @@ declare module _ {
5557
5557
**/
5558
5558
forInRight < T extends { } > (
5559
5559
object : Dictionary < T > ,
5560
- callback ?: ObjectIterator < T , void > ,
5560
+ callback ?: DictionaryIterator < T , void > ,
5561
5561
thisArg ?: any ) : Dictionary < T > ;
5562
5562
5563
5563
/**
@@ -5591,7 +5591,7 @@ declare module _ {
5591
5591
**/
5592
5592
forOwn < T extends { } > (
5593
5593
object : Dictionary < T > ,
5594
- callback ?: ObjectIterator < T , void > ,
5594
+ callback ?: DictionaryIterator < T , void > ,
5595
5595
thisArg ?: any ) : Dictionary < T > ;
5596
5596
5597
5597
/**
@@ -5624,7 +5624,7 @@ declare module _ {
5624
5624
**/
5625
5625
forOwnRight < T extends { } > (
5626
5626
object : Dictionary < T > ,
5627
- callback ?: ObjectIterator < T , void > ,
5627
+ callback ?: DictionaryIterator < T , void > ,
5628
5628
thisArg ?: any ) : Dictionary < T > ;
5629
5629
/**
5630
5630
* @see _.forOwnRight
@@ -6413,11 +6413,15 @@ declare module _ {
6413
6413
}
6414
6414
6415
6415
interface ListIterator < T , TResult > {
6416
- ( value : T , index : number , list : T [ ] ) : TResult ;
6416
+ ( value : T , index : number , collection : T [ ] ) : TResult ;
6417
+ }
6418
+
6419
+ interface DictionaryIterator < T , TResult > {
6420
+ ( value : T , key : string , collection : Dictionary < T > ) : TResult ;
6417
6421
}
6418
6422
6419
6423
interface ObjectIterator < T , TResult > {
6420
- ( element : T , key : string , list : any ) : TResult ;
6424
+ ( element : T , key : string , collection : any ) : TResult ;
6421
6425
}
6422
6426
6423
6427
interface MemoVoidIterator < T , TResult > {
0 commit comments