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

x/alosaur/src/metadata/hook.ts>HookMetadataArgs

Alosaur - Deno web framework with many decorators
Go to Latest
interface HookMetadataArgs
import { type HookMetadataArgs } from "https://deno.land/x/alosaur@v0.33.1/src/metadata/hook.ts";

Hook metadata used to storage information about registered hooks.

Type Parameters

TState
TPayload

Properties

optional
area: AreaMetadataArgs
optional
controller: ControllerMetadataArgs
optional
action: ActionMetadataArgs
object: Object
target: Object

Indicates object which is used by this hook.

Type, default controller

method: string

Action name of class, TODO(irustm): rename to action name

optional
instance: HookTarget<TState, TPayload>

Instance of hook

optional
hookClass: Function

Class of hook

optional
payload: any

Payload for hook instance