@gecut/utilities
Version:
The ultimate utility toolkit from Gecut Company, crafted with TypeScript for optimal speed and efficiency. Designed to boost productivity with a suite of fast and optimized tools.
9 lines (8 loc) • 368 B
TypeScript
export declare function untilMS(delayMS: number): Promise<void>;
export declare function untilNextFrame(): Promise<number>;
export declare function untilIdle(): Promise<IdleDeadline>;
export declare function untilEvent<T extends keyof HTMLElementEventMap>(
element: HTMLElement,
eventName: T,
): Promise<HTMLElementEventMap[T]>;
//# sourceMappingURL=wait.d.ts.map