UNPKG

@tsed/formio

Version:
16 lines (15 loc) 389 B
import { StoreSet, useDecorators } from "@tsed/core"; import { registerProvider } from "@tsed/di"; /** * Create a new FormIO Action. * @param options * @decorator */ export function Action(options) { return useDecorators((target) => { registerProvider({ token: target, type: "formio:action" }); }, StoreSet("formio:action", options)); }