@finapi/web-form
Version:
Library for integrating the finAPI Web Form
15 lines (14 loc) • 736 B
TypeScript
import { WebFormProps } from "./props.types";
/**
* Before the element is attached to the document the first time, the properties must be
* set directly as element fields.
* Then, after unload, for all the next attachments, properties must be set to the 'properties' field of the element.
* This is related to the fact whether the web component's constructor
* is already or not yet registered in customElementRegistry.
* The constructor's implementation itself comes from the Direflow library, and it is a bit opaque to read.
* The following interface is the unification of both cases.
* @internal
*/
export interface WebFormElement extends HTMLElement, WebFormProps {
properties?: WebFormProps | Record<string, never>;
}