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