@kezios/forest-express-decorator
Version:
🚀 Decorators for Express Forest Admin
11 lines (10 loc) • 377 B
TypeScript
import { hookFunction } from './../types/SmartAction';
import { Request, Response } from "express";
import { SmartActionField, SMART_ACTION_TYPE } from "../types";
export declare abstract class BaseSmartAction {
label: string;
type: SMART_ACTION_TYPE;
fields: SmartActionField[];
onLoad?: hookFunction;
abstract onCall(req: Request, res: Response): void;
}