Skip to main content
Module

x/hooks/src/index.ts>HookManager

Async middleware for JavaScript and TypeScript
Latest
class HookManager
Re-export
import { HookManager } from "https://deno.land/x/hooks@v0.9.0/src/index.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)