@metreeca/keep
    Preparing search index...

    Function getFlakeVariant

    • Selects the property branches of a node that one variant of its range declares.

      A node's Entries hold the branches of every union variant, keyed by property name. This view keeps only the branches whose name shape declares. A name declared by several variants is one branch (qest §3.2, §5.8.1), so that branch appears under each of them.

      Parameters

      • flake: Flake

        The node whose branches to select: any Flake, including a collection flake root, not only a Branch

      • shape: Shape

        One of the range variants to select by

      Returns readonly Branch[]

      The branches shape declares, in the order of the node's entries