UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

16 lines (15 loc) 572 B
import { AsyncIterableX } from '../asynciterablex'; import { OperatorAsyncFunction } from '../../interfaces'; export interface Timestamp<TSource> { time: number; value: TSource; } export declare class TimestampAsyncIterable<TSource> extends AsyncIterableX<Timestamp<TSource>> { private _source; constructor(source: AsyncIterable<TSource>); [Symbol.asyncIterator](): AsyncGenerator<{ time: number; value: TSource; }, void, unknown>; } export declare function timestamp<TSource>(): OperatorAsyncFunction<TSource, Timestamp<TSource>>;