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

x/alosaur/src/utils/register-hooks.ts>registerHooks

Alosaur - Deno web framework with many decorators
Go to Latest
function registerHooks
import { registerHooks } from "https://deno.land/x/alosaur@v0.33.0/src/utils/register-hooks.ts";

Register hooks and resolve hook instance by type in layer

Parameters

layer: { object: Function; container?: DependencyContainer; hooks: HookMetadataArgs<TState, any>[]; }
optional
hooks: HookMetadataArgs<TState, any>[] = [UNSUPPORTED]
optional
type: BusinessType = [UNSUPPORTED]