blob: 46575fb34c8cdb6f99c3b7242adcae0694d33618 [file] [log] [blame]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03001import {Action, ActionCreator} from "redux";
2export const UPDATE_NAME= '[NAME] Update';
3export const UPDATE_FLAGS= '[FLAGS] Update';
4
5export interface UpdateGlobalAction extends Action {
6 name?: string;
7}
8
9export interface UpdateFlagsAction extends Action {
10 flags?: any;
11}
12
13export const updateName: ActionCreator<UpdateGlobalAction> =
14 (name) => ({
15 type: UPDATE_NAME,
16 name: name
17 });
18
19export const updateFlags: ActionCreator<UpdateFlagsAction> =
20 (flags) => ({
21 type: UPDATE_FLAGS,
22 flags: flags
23 });