Skip to content

FormioHooksService

@tsed/formio

Usage

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

See /packages/third-parties/formio/src/types/services/FormioHooksService.ts.

Overview

ts
class FormioHooksService {
    protected injector: InjectorService;
    protected formio: FormioService;
    get settings(): (req: Request, cb: Function) => void;
    get invoke(): <T = any>(...args: any[]) => boolean | T;
    get alter(): (event: string, ...args: any[]) => any;
    get alterAsync(): (event: string, ...args: any[]) => Promise<any>;
    getHooks(): FormioHooks;
    protected getProviders(type: "alter" | "on"): import("@tsed/di").Provider<any>[];
    protected getHooksProvider(type: "alter" | "on"): {};
    protected bindHooks(type: "alter" | "on", hooks: Record<string, Function[]>): {};
}

protected injector

ts
protected injector: InjectorService;

protected formio

ts
protected formio: FormioService;

get settings

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

get invoke

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

get alter

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

get alterAsync

ts
get alterAsync(): (event: string, ...args: any[]) => Promise<any>;

getHooks

ts
getHooks(): FormioHooks;

protected getProviders

ts
protected getProviders(type: "alter" | "on"): import("@tsed/di").Provider<any>[];

protected getHooksProvider

ts
protected getHooksProvider(type: "alter" | "on"): {};

protected bindHooks

ts
protected bindHooks(type: "alter" | "on", hooks: Record<string, Function[]>): {};

Released under the MIT License.