cleanUp.ts 304 B

1234567891011
  1. import { createAction } from '@reduxjs/toolkit';
  2. import { StoreState } from '../../types';
  3. export type StateSelector<T> = (state: StoreState) => T;
  4. export interface CleanUp<T> {
  5. stateSelector: (state: StoreState) => T;
  6. }
  7. export const cleanUpAction = createAction<CleanUp<{}>>('core/cleanUpState');