mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
adds function type for Dictionary version of reduce (issue 4244)
This commit is contained in:
1 parent
4311017110
commit
35036ae8dd
1 file changed
+5
-1
Vendored
+5
-1
@@ -53,6 +53,10 @@ declare module _ {
|
||||
(prev: TResult, curr: T, index: number, list: T[]): TResult;
|
||||
}
|
||||
|
||||
interface MemoObjectIterator<T, TResult> {
|
||||
(prev: TResult, curr: T, key: string, list: any): TResult;
|
||||
}
|
||||
|
||||
interface Collection<T> { }
|
||||
|
||||
// Common interface between Arrays and jQuery objects
|
||||
@@ -181,7 +185,7 @@ interface UnderscoreStatic {
|
||||
|
||||
reduce<T, TResult>(
|
||||
list: _.Dictionary<T>,
|
||||
iterator: _.ObjectIterator<T, TResult>,
|
||||
iterator: _.MemoObjectIterator<T, TResult>,
|
||||
memo?: TResult,
|
||||
context?: any): TResult;
|
||||
|
||||
|
||||
Reference in new issue
Block a user