ixfx
    Preparing search index...

    Type Alias DriverResult<V>

    type DriverResult<V extends Transitions> = {
        next?: StateNames<V> | boolean;
        reset?: boolean;
        score?: number;
    }

    Type Parameters

    Index

    Properties

    Properties

    next?: StateNames<V> | boolean

    If specified,the state to transition to. Use true to attempt to automatically advance machine. This field is 2nd priority.

    reset?: boolean

    If true, resets the machine. This flag is 1st priority, taking precedence over the next field.

    score?: number

    Score of this result. This is used when a state has multiple handlers returning results separately. If not defined, 0 is used.