import { createAction } from '@reduxjs/toolkit'; import { StoreState } from '../../types'; export type StateSelector = (state: StoreState) => T; export interface CleanUp { stateSelector: (state: StoreState) => T; } export const cleanUpAction = createAction>('core/cleanUpState');