Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/alosaur/src/models/hook.ts

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
File
import { HttpContext } from "./http-context.ts";
export type HookMethod = keyof HookTarget<void, void>;
export interface HookTarget<TState, TPayload> { onPreAction?(context: HttpContext<TState>, payload: TPayload): void; onPostAction?(context: HttpContext<TState>, payload: TPayload): void; onCatchAction?(context: HttpContext<TState>, payload: TPayload): void;}