---
url: /api/hooks/types/type-hook-ref.md
description: api documentation of HookRef from @tsed/hooks
---

## Usage

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

> See [/packages/hooks/src/Hooks.ts](https://github.com/tsedio/tsed/blob/v8.37.1/packages/hooks/src/Hooks.ts#L0-L0).

## 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.
