@surface/custom-element
Version:
Provides support of directives and data binding on custom elements.
10 lines (9 loc) • 399 B
TypeScript
import type { IDisposable } from "@surface/core";
export default interface ICustomlement extends HTMLElement, IDisposable
{
shadowRoot: ShadowRoot;
adoptedCallback?(): void;
attributeChangedCallback?(attributeName: string, oldValue: string | undefined, newValue: string, namespace: string | undefined): void;
connectedCallback?(): void;
disconnectedCallback?(): void;
}