lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
9 lines (8 loc) • 356 B
TypeScript
/**
* A validator function which checks whether an input value is an image source.
* An image source can be a string, an HTMLImageElement or an HTMLVideoElement.
* Doesn't stop the validator chain.
*
* @category XML
*/
export declare function validateImageSource(value: unknown): [value: string | HTMLImageElement | HTMLVideoElement, stop: boolean];