summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/global.actions.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vid-webpack-master/src/app/global.actions.ts')
-rw-r--r--vid-webpack-master/src/app/global.actions.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/vid-webpack-master/src/app/global.actions.ts b/vid-webpack-master/src/app/global.actions.ts
new file mode 100644
index 00000000..46575fb3
--- /dev/null
+++ b/vid-webpack-master/src/app/global.actions.ts
@@ -0,0 +1,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
+ });