appSlice: Slice<AppState, {
    setMyState1: ((state, action) => void);
    setMyState2: ((state, action) => void);
}, "app", "app", SliceSelectors<AppState>> = ...

Type declaration

  • setMyState1: ((state, action) => void)
      • (state, action): void
      • Parameters

        • state: WritableDraft<AppState>
        • action: {
              payload: string;
              type: string;
          }
          • payload: string
          • type: string

        Returns void

  • setMyState2: ((state, action) => void)
      • (state, action): void
      • Parameters

        • state: WritableDraft<AppState>
        • action: {
              payload: boolean;
              type: string;
          }
          • payload: boolean
          • type: string

        Returns void

Generated using TypeDoc