import { SET_BLOG_STATE , BlogState } from './type' ; type ISetBlogStateAction = IAction < typeof SET_BLOG_STATE , Partial < BlogState > > ; export const setBlogState = ( state ) : ISetBlogStateAction => { return { type : SET_BLOG_STATE , payload : state } ; } ; export type BlogAction = ISetBlogStateAction ;