UNPKG

evnty

Version:

0-Deps, simple, fast, for browser and node js reactive anonymous event library

17 lines (16 loc) 492 B
import { Fn } from './types.js'; /** * @internal */ export interface Callable<T extends unknown[], R> { (...args: T): R; } /** * An abstract class that extends the built-in Function class. It allows instances of the class * to be called as functions. When an instance of Callable is called as a function, it will * call the function passed to its constructor with the same arguments. * @internal */ export declare abstract class Callable<T, R> { constructor(func: Fn<T, R>); }