couch-kit
    Preparing search index...

    Type Alias GameReducer<S, A>

    GameReducer: (state: S, action: A) => S

    Type alias for a game reducer function.

    Accepts the current state and an action, and returns the new state. Used by both GameHostProvider and useGameClient to define game logic.

    Type Parameters

    Type Declaration

      • (state: S, action: A): S
      • Parameters

        • state: S
        • action: A

        Returns S