@jsxtools/aui
Version:
A baseline UI as Mixins, Custom Elements, React Components, etc.
13 lines (12 loc) • 527 B
TypeScript
export declare const customElements: CustomElementRegistry;
export declare const HTMLElement: CustomElementConstructor;
export interface CustomElement extends HTMLElement {
attributeChangedCallback?(name: string, oldValue: string | null, newValue: string | null): void;
connectedCallback?(): void;
disconnectedCallback?(): void;
}
export interface CustomElementConstructor<T = CustomElement> {
new (...args: any[]): globalThis.HTMLElement & T;
observedAttributes?: string[];
formAssociated?: boolean;
}