UNPKG

@tesler-ui/cra-template-typescript

Version:

The base TypeScript template for Create React App.

25 lines (21 loc) 536 B
import {AnyAction} from '../interfaces/actions' import {AppState} from '../interfaces/storeSlices' import {DataState} from '@tesler-ui/core/interfaces/data' /** * Your initial state for this slice */ export const initialState: DataState = { } export default function dataReducer( state: DataState = initialState, action: AnyAction, store?: Readonly<AppState> ): DataState { switch (action.type) { /** * Your reducers for this slice */ default: return state } }