import { ActionsUnion , createAction , StringMap } from "../ActionHelper" ; export enum SettingsActionTypes { SET_PREFERENCES = "SETTINGS/SET_PREFRENCES" , LOAD_PREFERENCES = "SETTINGS/LOAD" } export const SettingActions = { setPreferences : ( map ) => createAction ( SettingsActionTypes . SET_PREFERENCES , { map } ) , loadPreferences : ( ) => createAction ( SettingsActionTypes . LOAD_PREFERENCES ) , } ; export type SettingActionsUnion = ActionsUnion < typeof SettingActions > ;