happy-dom
Version:
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
17 lines (15 loc) • 432 B
text/typescript
import type HTMLElement from '../nodes/html-element/HTMLElement.js';
export default interface ICustomElementDefinition {
elementClass: typeof HTMLElement;
extends: string | null;
observedAttributes: Set<string>;
lifecycleCallbacks: {
connectedCallback?: () => void;
disconnectedCallback?: () => void;
attributeChangedCallback?: (
name: string,
oldValue: string | null,
newValue: string | null
) => void;
};
}