Module / v1.0.0-beta.13

@typed/template/many

5 unique exports available through this public import path, including their members and aliases.

import * as many from "@typed/template/many";

Keyed collection protocol

  • ManyTypeId

    variable

    Identifies a keyed collection descriptor without starting its source.

  • isMany

    function

    Recognizes a descriptor before a target chooses its keyed rendering path. This guard does not subscribe to the collection or validate its current keys; key uniqueness is checked when the target receives an array.

Keyed collection rendering

  • Many

    interface

    A collection source, stable key function, and per-item view supplied to a renderer. Describing the collection acquires nothing; the active target owns subscription and child lifetimes.

    The DOM target retains each key’s subject and scope across moves. The HTML target consumes an initial collection for finite response output. Construct descriptors with many rather than assembling this protocol by hand.

  • many

    function

    Efficiently renders a reactive list of items by using keys to minimize DOM operations and maintain component state.

    many returns a renderer descriptor rather than an Fx. The active renderer consumes its source directly and can therefore retain keyed entries without flattening each child back through a generic collection stream.

Keyed hydration markers

  • MANY_HOLE

    variable

    Produces the closing hydration marker for a keyed-list item.