Interface Store<StateType>

Represents a generic store interface for managing state (basically an interface for a zustand store)

interface Store<StateType> {
    getState(): StateType;
    setState(data: StateType, replace: boolean): void;
    <T>(cb: (state: StateType) => T): T;
}

Type Parameters

  • StateType

    The type of the state managed by the store.

Methods