I want to type status with FetchingStatus type. How to implement that?
type FetchingStatus = 'idle' | 'loading' | 'succeeded' | 'failed';
const initialState = companyPagesAdapter.getInitialState({
status: 'idle',
perPage: 1,
lastPage: 1
});
here is signature of getInitialState:
getInitialState<S extends object>(state: S): EntityState<T> & S