@metreeca/core - v0.9.17
    Preparing search index...

    Type Alias Transition<T, I>

    Transition: (...inputs: I) => T

    State transition.

    Transition methods take inputs and generate a new immutable state by applying an Update to the current state.

    Type Parameters

    • T

      The state type

    • I extends readonly unknown[]

      The transition input parameters as a readonly tuple

    Type Declaration

      • (...inputs: I): T
      • Parameters

        • ...inputs: I

        Returns T