UNPKG

@tsed/formio

Version:
19 lines 486 B
import { Context } from "@tsed/platform-params"; /** * Return the current action context with the following data: * * ```typescript * export type ActionCtx = { * handler: string; * method: string; * setActionItemMessage: SetActionItemMessage; * action: FormioAction; * }; * ``` * @param expression * @constructor */ export function ActionCtx(expression) { return Context(["ACTION_CTX", expression].filter(Boolean).join(".")); } //# sourceMappingURL=actionCtx.js.map