Skip to content

HookRef

@tsed/hooks

Usage

typescript
import { HookRef } from "@tsed/hooks/src/Hooks";

See /packages/hooks/src/Hooks.ts.

Overview

ts
type HookRef = string | symbol | any | Function;

Description

A reference that can be used to identify and manage hook listeners.

This type allows various kinds of values to be used as references when registering hook listeners, enabling flexible listener management and targeted event emission.

Released under the MIT License.