UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

15 lines (14 loc) 484 B
import type { AnyToVoidFnSignature } from '../misc/functions'; /** * Postpone action after next render */ export declare const afterNextRender: (callback: () => void) => number; /** * Postpone action after a couple of renders */ export declare const skipOneRender: (callback: () => void) => number; /** * Decorate function to schedule execution after next render * @returns decorated function */ export declare const rafDecorator: <T extends AnyToVoidFnSignature>(fn: T) => T;