mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 04:24:30 +08:00
Fix underscore map method
This commit is contained in:
2
underscore/underscore-1.4.d.ts
vendored
2
underscore/underscore-1.4.d.ts
vendored
@@ -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
|
||||
|
||||
4
underscore/underscore-typed-1.4.d.ts
vendored
4
underscore/underscore-typed-1.4.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user