source: trip-planner-front/node_modules/rxjs/internal/operators/find.d.ts@ 8d391a1

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

initial commit

  • Property mode set to 100644
File size: 1.4 KB
Line 
1import { Observable } from '../Observable';
2import { Operator } from '../Operator';
3import { Subscriber } from '../Subscriber';
4import { OperatorFunction } from '../types';
5export declare function find<T, S extends T>(predicate: (value: T, index: number, source: Observable<T>) => value is S, thisArg?: any): OperatorFunction<T, S | undefined>;
6export declare function find<T>(predicate: (value: T, index: number, source: Observable<T>) => boolean, thisArg?: any): OperatorFunction<T, T | undefined>;
7export declare class FindValueOperator<T> implements Operator<T, T | number | undefined> {
8 private predicate;
9 private source;
10 private yieldIndex;
11 private thisArg?;
12 constructor(predicate: (value: T, index: number, source: Observable<T>) => boolean, source: Observable<T>, yieldIndex: boolean, thisArg?: any);
13 call(observer: Subscriber<T>, source: any): any;
14}
15/**
16 * We need this JSDoc comment for affecting ESDoc.
17 * @ignore
18 * @extends {Ignored}
19 */
20export declare class FindValueSubscriber<T> extends Subscriber<T> {
21 private predicate;
22 private source;
23 private yieldIndex;
24 private thisArg?;
25 private index;
26 constructor(destination: Subscriber<T>, predicate: (value: T, index: number, source: Observable<T>) => boolean, source: Observable<T>, yieldIndex: boolean, thisArg?: any);
27 private notifyComplete;
28 protected _next(value: T): void;
29 protected _complete(): void;
30}
Note: See TracBrowser for help on using the repository browser.