source: trip-planner-front/node_modules/rxjs/internal/operators/groupBy.d.ts@ 1ad8e64

Last change on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.9 KB
Line 
1import { Subscriber } from '../Subscriber';
2import { Subscription } from '../Subscription';
3import { Observable } from '../Observable';
4import { Subject } from '../Subject';
5import { OperatorFunction } from '../types';
6export declare function groupBy<T, K>(keySelector: (value: T) => K): OperatorFunction<T, GroupedObservable<K, T>>;
7export declare function groupBy<T, K>(keySelector: (value: T) => K, elementSelector: void, durationSelector: (grouped: GroupedObservable<K, T>) => Observable<any>): OperatorFunction<T, GroupedObservable<K, T>>;
8export declare function groupBy<T, K, R>(keySelector: (value: T) => K, elementSelector?: (value: T) => R, durationSelector?: (grouped: GroupedObservable<K, R>) => Observable<any>): OperatorFunction<T, GroupedObservable<K, R>>;
9export declare function groupBy<T, K, R>(keySelector: (value: T) => K, elementSelector?: (value: T) => R, durationSelector?: (grouped: GroupedObservable<K, R>) => Observable<any>, subjectSelector?: () => Subject<R>): OperatorFunction<T, GroupedObservable<K, R>>;
10export interface RefCountSubscription {
11 count: number;
12 unsubscribe: () => void;
13 closed: boolean;
14 attemptedToUnsubscribe: boolean;
15}
16/**
17 * An Observable representing values belonging to the same group represented by
18 * a common key. The values emitted by a GroupedObservable come from the source
19 * Observable. The common key is available as the field `key` on a
20 * GroupedObservable instance.
21 *
22 * @class GroupedObservable<K, T>
23 */
24export declare class GroupedObservable<K, T> extends Observable<T> {
25 key: K;
26 private groupSubject;
27 private refCountSubscription?;
28 /** @deprecated Do not construct this type. Internal use only */
29 constructor(key: K, groupSubject: Subject<T>, refCountSubscription?: RefCountSubscription);
30 /** @deprecated This is an internal implementation detail, do not use. */
31 _subscribe(subscriber: Subscriber<T>): Subscription;
32}
Note: See TracBrowser for help on using the repository browser.