mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Merge pull request #15731 from alexandrepetrillo/patch-2
fix Streamjs GroupingResult
This commit is contained in:
commit
460be51a58
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> {
|
||||
|
||||
@ -97,7 +97,7 @@ numStream.collect({
|
||||
});
|
||||
|
||||
var groupingResult = myStream.groupBy(lst => lst.name);
|
||||
var elems = groupingResult["hello"].elems;
|
||||
var length = groupingResult["hello"].length;
|
||||
groupingResult = myStream.groupingBy(lst => lst.name);
|
||||
groupingResult = myStream.groupBy("name");
|
||||
groupingResult = myStream.groupingBy("name");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user