import {Action, ActionCreator} from "redux"; export const UPDATE_NAME= '[NAME] Update'; export const UPDATE_FLAGS= '[FLAGS] Update'; export interface UpdateGlobalAction extends Action { name?: string; } export interface UpdateFlagsAction extends Action { flags?: any; } export const updateName: ActionCreator = (name) => ({ type: UPDATE_NAME, name: name }); export const updateFlags: ActionCreator = (flags) => ({ type: UPDATE_FLAGS, flags: flags });