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

    Type Alias Update<T, I>

    Update: (...inputs: I) => Partial<T>

    State update.

    Update functions receive transition inputs, access current version data via this, and return a partial update containing only the properties to change.

    Type Parameters

    • T

      The state type

    • I extends readonly unknown[]

      The transition input parameters as a readonly tuple

    Type Declaration

      • (...inputs: I): Partial<T>
      • Parameters

        • ...inputs: I

        Returns Partial<T>