@halsp/core
Version:
面向云的现代渐进式轻量 Node.js 框架
10 lines (9 loc) • 423 B
TypeScript
import { Context } from "../context";
import { HookItem, HookType } from "./hook.item";
import { Startup } from "../startup";
export declare class HookManager {
static getGlobalHooks(startup: Startup, type?: HookType): HookItem[];
static addGlobalHook(startup: Startup, hook: HookItem): void;
static getHooks(ctx: Context, type?: HookType): HookItem[];
static addHook(ctx: Context, hook: HookItem): void;
}