lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
13 lines • 367 B
JavaScript
/**
* A validator function which checks whether an input value is a function.
* Doesn't stop the validator chain.
*
* @category XML
*/
export function validateFunction(value) {
if (typeof value !== 'function') {
throw new Error('Invalid function; not an function type');
}
return [value, false];
}
//# sourceMappingURL=validateFunction.js.map