14 lines
491 B
TypeScript
14 lines
491 B
TypeScript
import { OperatorFunction, SchedulerLike, Timestamp as TimestampInterface } from '../types';
|
|
/**
|
|
* @param scheduler
|
|
* @return {Observable<Timestamp<any>>|WebSocketSubject<T>|Observable<T>}
|
|
* @method timestamp
|
|
* @owner Observable
|
|
*/
|
|
export declare function timestamp<T>(scheduler?: SchedulerLike): OperatorFunction<T, Timestamp<T>>;
|
|
export declare class Timestamp<T> implements TimestampInterface<T> {
|
|
value: T;
|
|
timestamp: number;
|
|
constructor(value: T, timestamp: number);
|
|
}
|