UNPKG

@tsed/formio

Version:
20 lines (18 loc) 380 B
import {StoreSet, useDecorators} from "@tsed/core"; import {registerProvider} from "@tsed/di"; /** * * @param name * @constructor */ export function Alter(name: string): ClassDecorator { return useDecorators( (target: any) => { registerProvider({ token: target, type: "formio:alter" }); }, StoreSet("formio:alter:name", name) ); }