Improve type checks

This commit is contained in:
riggraz
2019-09-26 16:03:41 +02:00
parent 322c8e51cf
commit 678d2eaacf
16 changed files with 67 additions and 26 deletions

View File

@@ -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 = (