UNPKG

@kezios/forest-express-decorator

Version:
11 lines (10 loc) • 377 B
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; }