Front end of the Slack clone application.

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { Operator } from './Operator';
  2. import { Observer } from './Observer';
  3. import { Observable } from './Observable';
  4. import { Subscriber } from './Subscriber';
  5. import { ISubscription, Subscription, TeardownLogic } from './Subscription';
  6. /**
  7. * @class SubjectSubscriber<T>
  8. */
  9. export declare class SubjectSubscriber<T> extends Subscriber<T> {
  10. protected destination: Subject<T>;
  11. constructor(destination: Subject<T>);
  12. }
  13. /**
  14. * @class Subject<T>
  15. */
  16. export declare class Subject<T> extends Observable<T> implements ISubscription {
  17. observers: Observer<T>[];
  18. closed: boolean;
  19. isStopped: boolean;
  20. hasError: boolean;
  21. thrownError: any;
  22. constructor();
  23. static create: Function;
  24. lift<R>(operator: Operator<T, R>): Observable<R>;
  25. next(value?: T): void;
  26. error(err: any): void;
  27. complete(): void;
  28. unsubscribe(): void;
  29. protected _trySubscribe(subscriber: Subscriber<T>): TeardownLogic;
  30. /** @deprecated internal use only */ _subscribe(subscriber: Subscriber<T>): Subscription;
  31. asObservable(): Observable<T>;
  32. }
  33. /**
  34. * @class AnonymousSubject<T>
  35. */
  36. export declare class AnonymousSubject<T> extends Subject<T> {
  37. protected destination: Observer<T>;
  38. constructor(destination?: Observer<T>, source?: Observable<T>);
  39. next(value: T): void;
  40. error(err: any): void;
  41. complete(): void;
  42. /** @deprecated internal use only */ _subscribe(subscriber: Subscriber<T>): Subscription;
  43. }