import type { AnyAction } from 'redux' ; const TYPE_REFRESH_STORE = '@@store/refresh' ; export interface RefreshAction { type : typeof TYPE_REFRESH_STORE ; payload : { force : boolean ; } ; } export const actionRefresh = ( force ) : RefreshAction => { return { type : TYPE_REFRESH_STORE , payload : { force , } , } ; } ; export const isRefreshAction = ( action ) : action is RefreshAction => { return ( action as RefreshAction ) . type === TYPE_REFRESH_STORE ; } ;