aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/global.actions.ts
blob: 46575fb34c8cdb6f99c3b7242adcae0694d33618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
  });