UNPKG

1.18 kBTypeScriptView Raw
1import { Action } from "@ngrx/store";
2import { FormSchemaModel } from "../models";
3export declare enum EditFormActionTypes {
4 EDIT_FORM = "[FORM][EDIT] EDIT_FORM",
5 EDIT_FORM_START = "[FORM][EDIT] EDIT_FORM_START",
6 EDIT_FORM_SUCCEED = "[FORM][EDIT] EDIT_FORM_SUCCEED",
7 EDIT_FORM_FAILED = "[FORM][EDIT] EDIT_FORM_FAILED"
8}
9export declare class EditFormAction implements Action {
10 payload: FormSchemaModel;
11 readonly type = EditFormActionTypes.EDIT_FORM;
12 constructor(payload: FormSchemaModel);
13}
14export declare class EditFormStartAction implements Action {
15 payload: FormSchemaModel;
16 readonly type = EditFormActionTypes.EDIT_FORM_START;
17 constructor(payload: FormSchemaModel);
18}
19export declare class EditFormSucceedAction implements Action {
20 payload: FormSchemaModel;
21 readonly type = EditFormActionTypes.EDIT_FORM_SUCCEED;
22 constructor(payload: FormSchemaModel);
23}
24export declare class EditFormFailedAction implements Action {
25 readonly type = EditFormActionTypes.EDIT_FORM_FAILED;
26}
27export declare type EditFormActions = EditFormAction | EditFormStartAction | EditFormSucceedAction | EditFormFailedAction;