mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 22:44:18 +08:00
rx.js.aggregates.d.ts: added reduce function
This commit is contained in:
3
rx.js/rx.js.aggregates.d.ts
vendored
3
rx.js/rx.js.aggregates.d.ts
vendored
@@ -11,6 +11,9 @@ declare module Rx {
|
||||
aggregate(accumulator: (acc: T, value: T) => T): Observable<T>;
|
||||
aggregate<TAcc>(seed: TAcc, accumulator: (acc: TAcc, value: T) => TAcc): Observable<TAcc>;
|
||||
|
||||
reduce(accumulator: (acc: T, value: T) => T): Observable<T>;
|
||||
reduce<TAcc>(accumulator: (acc: TAcc, value: T) => TAcc, seed: TAcc): Observable<TAcc>; // TS0.9.5: won't work https://typescript.codeplex.com/discussions/471751
|
||||
|
||||
any(predicate?: (value: T, index: number, source: Observable<T>) => boolean, thisArg?: any): Observable<boolean>;
|
||||
some(predicate?: (value: T, index: number, source: Observable<T>) => boolean, thisArg?: any): Observable<boolean>; // alias for any
|
||||
|
||||
|
||||
Reference in New Issue
Block a user