UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

9 lines (8 loc) 359 B
/** * A validator function which checks whether an input value is null or any other * type. If null, then the validator chain is stopped and null is returned, * otherwise, the validator chain is not stopped and the value is returned. * * @category XML */ export declare function validateNullable(value: unknown): [value: unknown | null, stop: boolean];