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