Skip to content

rulvar API reference


rulvar API reference / @rulvar/rulvar / roleConfiguredInRouting

Function: roleConfiguredInRouting()

ts
function roleConfiguredInRouting(role, layers): boolean;

Defined in: packages/core/dist/index.d.ts

True when any resolution layer configures the given role in its routing map. This is the finalize TRIGGER: firing is decided by the presence of a routing entry at any layer; the model it fires ON still resolves through the full chain (a higher layer's all-roles model may override the routed choice).

Parameters

ParameterType
roleInvocationRole
layers( | ResolutionLayer | undefined)[]

Returns

boolean