UNPKG

callable-instance

Version:

Instances of classes which are directly callable as functions.

9 lines (8 loc) 293 B
type Func<Args extends unknown[], Return> = (...argv: Args) => Return; interface ICallableInstance { // prettier-ignore new <Args extends unknown[], Return>(property: string | symbol): Func<Args, Return>; } declare const CallableInstance: ICallableInstance; export = CallableInstance;