UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

13 lines 360 B
/** * A validator function which checks whether an input value is a boolean. * Doesn't stop the validator chain. * * @category XML */ export function validateBoolean(value) { if (typeof value !== 'boolean') { throw new Error('Invalid boolean; not a boolean type'); } return [value, false]; } //# sourceMappingURL=validateBoolean.js.map