import { type HookCollection } from "https://deno.land/x/windmill@v1.371.2/node_modules/before-after-hook/index.d.ts";
Properties
api: Pick<HookCollection<HooksType>, >
| "before"
| "error"
| "after"
| "wrap"
| "remove"
Public API
Methods
before<Name extends HookName>(name: Name, beforeHook: BeforeHook<GetType<HooksType[Name], "Options", "O">>): void
Add before
hook for given name
error<Name extends HookName>(name: Name, errorHook: ErrorHook<GetType<HooksType[Name], "Options", "O">, GetType<HooksType[Name], "Error", "E">>): void
Add error
hook for given name
after<Name extends HookName>(name: Name, afterHook: AfterHook<GetType<HooksType[Name], "Options", "O">, GetType<HooksType[Name], "Result", "R">>): void
Add after
hook for given name