Skip to content

FormioHook

@tsed/formio

Usage ​

typescript
import { FormioHook } from "@tsed/formio";

See /packages/third-parties/formio/src/domain/FormioHooks.ts.

Overview ​

ts
interface FormioHook {
    settings(req: Request, cb: Function): void;
    invoke<T = any>(...args: any[]): T | boolean;
    alter(event: string, ...args: any[]): any;
}

settings ​

ts
settings(req: Request, cb: Function): void;

Run settings function.

invoke ​

ts
invoke<T = any>(...args: any[]): T | boolean;

Emit an event.

alter ​

ts
alter(event: string, ...args: any[]): any;

Alter the given value by calling all listener.

Released under the MIT License.