---
url: /api/hooks/types/const-hooks.md
description: api documentation of hooks from @tsed/hooks
---

## Usage

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

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

## Overview

```ts
const hooks: Hooks;
```

## Description

Global singleton instance of the Hooks class.

This instance provides a centralized event management system that can be used
throughout an application without needing to create and pass around separate
Hooks instances.

### Usage

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

hooks.on("app:started", () => {
  console.log("Application started");
});

hooks.emit("app:started", []);
```
