interface / @typed/template/WebComponent

Element

A registered element accepts typed input through its props property. Assign a new object to update; nested mutation is not observed.

Package version
1.0.0-beta.13
Category
Web Components
Since
1.0.0

Import

import { Element } from "@typed/template/WebComponent";

Signatures

export interface Element<Props extends object> extends HTMLElement {
    get props(): Props | undefined;
    set props(value: Props);
}

Accessor: props

Undefined until the element has a valid complete input snapshot.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source