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

x/alosaur/src/decorator/mod.ts>UseHook

Alosaur - Deno web framework with many decorators
Go to Latest
function UseHook
import { UseHook } from "https://deno.land/x/alosaur@v0.16.2/src/decorator/mod.ts";

Registers an controller or action hook.

Type Parameters

TState
TPayload

Parameters

hook: Type<HookTarget<TState, TPayload>>
optional
payload: TPayload

Returns

Function