Skip to main content
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.37.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]