armisa-models
Version:
models of armisa!
35 lines (34 loc) • 1.37 kB
TypeScript
import { AxiosInstance } from "axios";
import { TextBoxFactory } from "../ComponentFactory/TextBoxFactory";
import { MainStateManager } from "../MainStateManager";
import { ElementsOfFormFactory } from "../Page/ElementsOfFormFactory";
import { Argument } from "../Page/ElementsOfFormFactory/Argument";
import { IMainStateFactory } from "../Types";
export declare class SimpleRouteFormFactory implements IMainStateFactory {
mainStateManager: MainStateManager;
axiosData?: {
axios: (path: string) => AxiosInstance;
controllerPath: string;
acceptPath: string;
} | undefined;
argument?: Argument;
getTextBoxFactory: (fieldName: string) => TextBoxFactory;
forceUpdate: () => void;
cach: {};
set accept(value: any);
get accept(): any;
_accept: (afterSuccess?: ((responseData: any) => void) | undefined) => void;
saveData: (afterSuccess?: ((responseData: any) => void) | undefined) => void;
cancel: () => void;
delete: () => void;
new: () => void;
get any(): any;
elementsOfForm: ElementsOfFormFactory;
apiSync?: AxiosInstance;
constructor(mainStateManager: MainStateManager, axiosData?: {
axios: (path: string) => AxiosInstance;
controllerPath: string;
acceptPath: string;
} | undefined);
close: () => void;
}