lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
11 lines (10 loc) • 508 B
TypeScript
import type { BaseXMLUIParser } from './BaseXMLUIParser.js';
import type { XMLUIParserContext } from './XMLUIParserContext.js';
/**
* A function that deserializes an XML element into a value usable by a Widget
* constructor. The correct deserializer is picked from the name of the element,
* but the element must be using the lazy-widgets base XML namespace.
*
* @category XML
*/
export type XMLElementDeserializer = (parser: BaseXMLUIParser, context: XMLUIParserContext, xmlElem: Element) => unknown;