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