@surface/custom-element
Version:
Provides support of directives and data binding on custom elements.
14 lines (13 loc) • 539 B
TypeScript
import type { Indexer } from "@surface/core";
import type TemplateDescriptor from "../types/template-descriptor";
export declare const STATIC_METADATA: unique symbol;
export default class StaticMetadata {
converters: Indexer<(target: Indexer, value: string) => void>;
shadowRootInit: ShadowRootInit;
observedAttributes: string[];
styles: CSSStyleSheet[];
template: HTMLTemplateElement;
descriptor: TemplateDescriptor;
static from(target: Function): StaticMetadata;
inherit(): StaticMetadata;
}