Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hooks/src/base.ts>HookManager

Async middleware for JavaScript and TypeScript
Go to Latest
class HookManager
import { HookManager } from "https://deno.land/x/hooks@v0.8.1/src/base.ts";

Properties

optional
_defaults: HookDefaultsInitializer
_middleware: AsyncMiddleware[] | null
_params: string[] | null
optional
_parent: this | null
_props: HookContextData | null

Methods

collectMiddleware(self: any, _args: any[]): AsyncMiddleware[]
getDefaults(
self: any,
args: any[],
context: HookContext,
): HookContextData | null
getParams(): string[] | null
initializeContext(
self: any,
args: any[],
context: HookContext,
): HookContext
middleware(middleware?: AsyncMiddleware[])
params(...params: string[])
parent(parent: this | null)