Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

find.d.ts 1.4KB

123456789101112131415161718192021222324252627282930
  1. import { Observable } from '../Observable';
  2. import { Operator } from '../Operator';
  3. import { Subscriber } from '../Subscriber';
  4. import { OperatorFunction } from '../types';
  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 | undefined>;
  6. export declare function find<T>(predicate: (value: T, index: number, source: Observable<T>) => boolean, thisArg?: any): OperatorFunction<T, T | undefined>;
  7. export 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. */
  20. export 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. }