Class State<LiteralId, T>

Source

Constructors§

Source§

new State<
    LiteralId extends string = string,
    T extends unknown = any,
>(
    id: LiteralId,
): State<LiteralId, T>

Properties§

Source§

public readonly id: LiteralId

Unique identifier for this state

Methods§

Source§

canTakeInput(
    _fromState: IChainable,
    _withConnectionOptions?: ConnectionOptions,
): boolean

Determines if this state can accept input from another state

Source§

listOutgoing(): IChainable<string, any>[]

Returns all states that are connected as next states from this state