Type alias GraphConditionFn

GraphConditionFn: ((state) => string)

A TypeScript function that inspects GraphState and returns the id of the next node. Used with { type: 'function' } conditions so authors can express arbitrary routing logic.

Type declaration

    • (state): string
    • Parameters

      Returns string