package.dist.animations.AnimationQueue.d.ts Maven / Gradle / Ivy
type TaskType = () => Promise;
declare class AnimationQueue {
static get tasks(): WeakMap;
static enqueue(element: HTMLElement, task: TaskType): void;
static run(element: HTMLElement, task: TaskType): Promise;
static push(element: HTMLElement, task: TaskType): void;
}
export default AnimationQueue;