Fix underscore map method

This commit is contained in:
Boris Yankov
2012-12-23 18:18:58 +02:00
parent 6b738d15be
commit 1f337f8742
2 changed files with 3 additions and 3 deletions

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

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.