ziko
Version:
A versatile JavaScript library offering a rich set of Hyperscript Based UI components, advanced mathematical utilities, interactivity ,animations, client side routing and more ...
27 lines (23 loc) • 526 B
TypeScript
export declare class Tick {
ms: number;
fn: (self: Tick) => void;
count: number;
frame: number;
id: ReturnType<typeof setInterval> | null;
running: boolean;
constructor(
fn: (self: Tick) => void,
ms: number,
count?: number,
start?: boolean
);
start(): this;
stop(): this;
isRunning(): boolean;
}
export declare function tick(
fn: (self: Tick) => void,
ms: number,
count?: number,
start?: boolean
): Tick;