Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/windmill/node_modules/before-after-hook/index.d.ts>HookSingular

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
interface HookSingular
import { type HookSingular } from "https://deno.land/x/windmill@v1.346.1/node_modules/before-after-hook/index.d.ts";

Type Parameters

Options
Result
Error

Call Signatures

(hookMethod: HookMethod<Options, Result>, options?: Options): Promise<Result>

Invoke before and after hooks

Properties

api: Pick<HookSingular<Options, Result, Error>,
| "before"
| "error"
| "after"
| "wrap"
| "remove"
>

Public API

Methods

before(beforeHook: BeforeHook<Options>): void

Add before hook

error(errorHook: ErrorHook<Options, Error>): void

Add error hook

after(afterHook: AfterHook<Options, Result>): void

Add after hook

wrap(wrapHook: WrapHook<Options, Result>): void

Add wrap hook

remove(hook: AnyHook<Options, Result, Error>): void

Remove added hook