function / @typed/template/WebComponent

make

Defines a custom element without reading any browser globals. Custom-element names use a conservative ASCII subset of the HTML grammar.

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

Import

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

Signatures

export declare function make<const F extends Fields = {}, const View extends Renderable.Any = never>(definition: Definition<F, View> & {
    readonly attributes?: F & ValidFields<F>;
}): Definition<F, View>;

Other public imports

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

Source