UNPKG

function-performer

Version:

Performer providing API for debounce, throttle, deduplication and limiting functions

7 lines (6 loc) 297 B
type AnyFunction = (...args: any[]) => any; type AnyConfig = Record<string, any>; interface IExecutable<TConfig extends AnyConfig | null = AnyConfig | null> { execute<TFunc extends AnyFunction>(config: TConfig, func: TFunc, ...args: Parameters<TFunc>): unknown; } export { type IExecutable };