type-alias / @typed/template/Wire

Rendered.Elements

Extract the elements from a Rendered type

Package version
1.0.0-beta.13
Category
Native output shapes
Since
1.0.0
Member of
Rendered

Import

import { Rendered } from "@typed/template/Wire";

Access Rendered.Elements through the imported Rendered export. Its declaration below describes the member.

Signatures

type Elements<T extends Rendered> = ReadonlyArray<[
    Node
] extends [
    Exclude<T, DocumentFragment | Wire | ReadonlyArray<Rendered>>
] ? HTMLElement | SVGElement : Exclude<T, DocumentFragment | Wire | ReadonlyArray<Rendered>>>;

Why

Event delegation and DOM helpers can expose only element-bearing output.

Ownership and lifetime

This projection owns no elements.

Other public imports

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

Source