lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
10 lines (9 loc) • 438 B
TypeScript
import { type BackingCanvas } from '../helpers/BackingCanvas.js';
/**
* 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 | BackingCanvas, stop: boolean];