mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
fix Streamjs GroupingResult
GroupingResult return an array of element
Exemple :
Stream.of({'firstname': 'john', 'lastname':'doe'}).groupBy(obj => obj.lastname)['doe']
=> is an Array
This commit is contained in:
committed by
GitHub
parent
e3fa8a2176
commit
e71a66fb28
2
types/streamjs/index.d.ts
vendored
2
types/streamjs/index.d.ts
vendored
@@ -126,7 +126,7 @@ declare namespace Stream {
|
||||
}
|
||||
|
||||
export interface GroupingResult<T> {
|
||||
[index: string]: T
|
||||
[index: string]: T[]
|
||||
}
|
||||
|
||||
export interface Iterator<T> {
|
||||
|
||||
Reference in New Issue
Block a user