mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Merge pull request #3428 from dcrusader/patch-3
GroupBy should return a _ChainOfArrays
This commit is contained in:
4
underscore/underscore.d.ts
vendored
4
underscore/underscore.d.ts
vendored
@@ -2630,13 +2630,13 @@ interface _Chain<T> {
|
||||
* Wrapped type `any[]`.
|
||||
* @see _.groupBy
|
||||
**/
|
||||
groupBy(iterator?: _.ListIterator<T, any>, context?: any): _Chain<T>;
|
||||
groupBy(iterator?: _.ListIterator<T, any>, context?: any): _ChainOfArrays<T>;
|
||||
|
||||
/**
|
||||
* Wrapped type `any[]`.
|
||||
* @see _.groupBy
|
||||
**/
|
||||
groupBy(iterator: string, context?: any): _Chain<T>;
|
||||
groupBy(iterator: string, context?: any): _ChainOfArrays<T>;
|
||||
|
||||
/**
|
||||
* Wrapped type `any[]`.
|
||||
|
||||
Reference in New Issue
Block a user