Fix underscore map method

This commit is contained in:
Boris Yankov
2012-12-26 09:28:22 +01:00
committed by Damiano
parent c76905da74
commit 437c54741f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for Underscore 1.4.1
// Type definitions for Underscore 1.4
// Project: http://underscorejs.org/
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
+2 -2
View File
@@ -73,7 +73,7 @@ interface Underscore {
map(
obj: Object,
iterator: (value: any, key?: string, object?: Object) => any,
context?: any): void;
context?: any): any[];
/**
* Alias for 'map'.
@@ -93,7 +93,7 @@ interface Underscore {
collect(
obj: Object,
iterator: (value: any, key?: string, object?: Object) => any,
context?: any): void;
context?: any): any[];
/**
* Also known as inject and foldl, reduce boils down a list of values into a single value.