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
Member of
WebComponent

Import

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

Access WebComponent.make through the imported WebComponent export. Its declaration below describes the member.

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

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