UNPKG

time-events-manager

Version:

View and Manage Javascript's timeout and interval collections

16 lines (15 loc) 548 B
import { Timeout } from './timeout.model'; export declare class TimeoutCollection { private _timeoutCollection; add(handler: Function, timeout?: number, ...args: any[]): any; remove(id: number): void; get(index: number): Timeout; getScheduled(): Timeout[]; getCompleted(): Timeout[]; getAll(): Timeout[]; getById(id: number): Timeout; removeAll(): void; private _getWrappedHandler(timeoutUuid, handler); private _getTimeoutIndexById(timeoutId); private _getTimeoutIndexByUuid(uuid); }