Type Alias DriverHandler<V>

DriverHandler<V>: {
    if: ReadonlyArray<StateNames<V>> | StateNames<V>[] | StateNames<V>;
    resultChoice?:
        | "first"
        | "highest"
        | "lowest"
        | "random";
    then: ReadonlyArray<DriverExpression<V>> | DriverExpression<V>;
}

Type Parameters

Type declaration

  • Readonlyif: ReadonlyArray<StateNames<V>> | StateNames<V>[] | StateNames<V>
  • Optional ReadonlyresultChoice?:
        | "first"
        | "highest"
        | "lowest"
        | "random"

    Logic for choosing which result, if there are multiple expressions. By default 'highest' (for highest ranked result)

  • Readonlythen: ReadonlyArray<DriverExpression<V>> | DriverExpression<V>