import { SET_COMMENT_STATE , CommentState } from './type' ; type ISetCommentStateAction = IAction < typeof SET_COMMENT_STATE , Partial < CommentState > > ; export const setCommentState = ( state ) : ISetCommentStateAction => { return { type : SET_COMMENT_STATE , payload : state } ; } ; export type CommentAction = ISetCommentStateAction ;