mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 20:21:46 +00:00
lodash: Fix lint failure (#20365)
This commit is contained in:
@@ -5547,7 +5547,7 @@ namespace TestReduce {
|
||||
result = <ABC>_.reduce({ 'a': 1, 'b': 2, 'c': 3 }, (r: ABC, num: number, key: string) => {
|
||||
r[key] = num * 3;
|
||||
return r;
|
||||
}, {} as ABC);
|
||||
}, {} as ABC); // tslint:disable-line no-object-literal-type-assertion
|
||||
|
||||
result = <number>_([1, 2, 3]).reduce<number>((sum: number, num: number) => sum + num);
|
||||
result = <ABC>_({ 'a': 1, 'b': 2, 'c': 3 }).reduce<number, ABC>((r: ABC, num: number, key: string) => {
|
||||
|
||||
Reference in New Issue
Block a user