blob: 46575fb34c8cdb6f99c3b7242adcae0694d33618 [file] [log] [blame]
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<UpdateGlobalAction> =
(name) => ({
type: UPDATE_NAME,
name: name
});
export const updateFlags: ActionCreator<UpdateFlagsAction> =
(flags) => ({
type: UPDATE_FLAGS,
flags: flags
});