Front end of the Slack clone application.

123456789101112131415161718192021222324252627282930313233
  1. import { Observable } from '../Observable';
  2. import { Operator } from '../Operator';
  3. import { Subscriber } from '../Subscriber';
  4. import { OperatorFunction, MonoTypeOperatorFunction } from '../interfaces';
  5. export declare function find<T, S extends T>(predicate: (value: T, index: number, source: Observable<T>) => value is S, thisArg?: any): OperatorFunction<T, S>;
  6. export declare function find<T, S extends T>(predicate: (value: T, index: number) => value is S, thisArg?: any): OperatorFunction<T, S>;
  7. export declare function find<T>(predicate: (value: T, index: number, source: Observable<T>) => boolean, thisArg?: any): MonoTypeOperatorFunction<T>;
  8. export declare function find<T>(predicate: (value: T, index: number) => boolean, thisArg?: any): MonoTypeOperatorFunction<T>;
  9. export declare class FindValueOperator<T> implements Operator<T, T> {
  10. private predicate;
  11. private source;
  12. private yieldIndex;
  13. private thisArg;
  14. constructor(predicate: (value: T, index: number, source: Observable<T>) => boolean, source: Observable<T>, yieldIndex: boolean, thisArg?: any);
  15. call(observer: Subscriber<T>, source: any): any;
  16. }
  17. /**
  18. * We need this JSDoc comment for affecting ESDoc.
  19. * @ignore
  20. * @extends {Ignored}
  21. */
  22. export declare class FindValueSubscriber<T> extends Subscriber<T> {
  23. private predicate;
  24. private source;
  25. private yieldIndex;
  26. private thisArg;
  27. private index;
  28. constructor(destination: Subscriber<T>, predicate: (value: T, index: number, source: Observable<T>) => boolean, source: Observable<T>, yieldIndex: boolean, thisArg?: any);
  29. private notifyComplete(value);
  30. protected _next(value: T): void;
  31. protected _complete(): void;
  32. }