UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

8 lines (7 loc) 312 B
/** * Creates a new validator function which checks whether an input value is an * instance of a given class. Doesn't stop the validator chain. * * @category XML */ export declare function makeInstanceOfValidator<T>(clazz: new (...args: unknown[]) => T): (inputValue: unknown) => [value: T, stop: boolean];