HierarchicalConfig
Auto-generated API reference for HierarchicalConfig.
Interface: HierarchicalConfig<TContext>
Defined in: topologies.ts:147
#Type Parameters
#TContext
TContext = unknown
#Properties
#maxDepth?
optionalmaxDepth?:number
Defined in: topologies.ts:153
Maximum depth. Default 5.
#name?
optionalname?:string
Defined in: topologies.ts:148
#onEvent?
optionalonEvent?:TopologyObserver
Defined in: topologies.ts:154
#root
root:
HierarchicalNode<TContext>
Defined in: topologies.ts:149
#route?
optionalroute?: (input) =>HierarchicalNode<TContext> |undefined
Defined in: topologies.ts:151
Pick which child (if any) to descend into. Return undefined to stop.
#Parameters
input
node
HierarchicalNode<TContext>
task
string
#Returns
HierarchicalNode<TContext> | undefined