mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Improve type checks
This commit is contained in:
@@ -50,10 +50,10 @@ interface CurrentPostState {
|
||||
}
|
||||
|
||||
const initialState: CurrentPostState = {
|
||||
item: postReducer(undefined, {}),
|
||||
item: postReducer(undefined, {} as PostRequestActionTypes),
|
||||
isLoading: false,
|
||||
error: '',
|
||||
comments: commentsReducer(undefined, {}),
|
||||
comments: commentsReducer(undefined, {} as CommentsRequestActionTypes),
|
||||
};
|
||||
|
||||
const currentPostReducer = (
|
||||
|
||||
Reference in New Issue
Block a user