Plants vs. Zombies: Replanted - v1.0.3
    Preparing search index...

    Interface IReducerSpec<T>

    specification a reducer registration has to follow. defaults must be an object with the same keys as reducers

    IReducerSpec

    interface IReducerSpec<T = { [key: string]: any }> {
        defaults: T;
        reducers: { [key: string]: (state: T, payload: any) => T };
        verifiers?: { [key: string]: IStateVerifier };
    }

    Type Parameters

    • T = { [key: string]: any }
    Index

    Properties

    defaults: T
    reducers: { [key: string]: (state: T, payload: any) => T }
    verifiers?: { [key: string]: IStateVerifier }