timestamp.d.ts 455 B

1234567891011121314
  1. import { IScheduler } from '../Scheduler';
  2. import { OperatorFunction } from '../interfaces';
  3. /**
  4. * @param scheduler
  5. * @return {Observable<Timestamp<any>>|WebSocketSubject<T>|Observable<T>}
  6. * @method timestamp
  7. * @owner Observable
  8. */
  9. export declare function timestamp<T>(scheduler?: IScheduler): OperatorFunction<T, Timestamp<T>>;
  10. export declare class Timestamp<T> {
  11. value: T;
  12. timestamp: number;
  13. constructor(value: T, timestamp: number);
  14. }