form-graph
    Preparing search index...

    Function enumerateBranches

    • Walks axes (the form's discriminant fields, in order) breadth-first, expanding each axis over its own meta.options, and returns one entry per reachable combination.

      An axis that is not active under the current pins is simply skipped, so branches where a later discriminant never appears terminate early instead of needing a special case.

      Type Parameters

      • State
      • Ext

      Parameters

      • definition: FormDefinition<State, Ext>
      • axes: readonly string[]
      • ext: Ext
      • basePins: Pins = {}

      Returns BranchDescription[]