erfan-flmngr-server-fixed
Version:
> Node.js Backend for Flmngr file manager
14 lines (13 loc) • 675 B
TypeScript
import { IConfig } from "../config/IConfig";
import { Req } from "../action/req/Req";
import { RespOk } from "../action/resp/RespOk";
export declare abstract class AAction {
protected m_config: IConfig | any;
setConfig(config: IConfig): void;
abstract getName(): string;
runWithCallback(request: Req, onFinish: (result: RespOk | Error) => void): void;
abstract run(request: Req, onFinish: (result: RespOk) => void): void;
protected validateBoolean(b: boolean, defaultValue: boolean): boolean;
protected validateInteger(i: number, defaultValue: number): number;
protected validateString(s: string, defaultValue: string): string;
}