UNPKG

sub-events

Version:

Lightweight, strongly-typed events, with monitored subscriptions.

9 lines (8 loc) 334 B
import { IEmitOptions, SubEventCount } from '../dist/src'; /** * Creates a time-interval event: * * - The interval re-starts when the first subscriber registers; * - The interval stops when the last subscription is cancelled. */ export declare function fromInterval(timeout: number, options?: IEmitOptions): SubEventCount<void>;