# HmrAware

`interface` in `cli` · v0.1.0

<https://docs.seedcord.org/packages/cli/0.1.0/interfaces/hmr-aware>

Interface for HMR handlers that can process hot updates for specific modules.

```ts
interface HmrAware
```

## Properties

### name

```ts
readonly name: string
```

A name to identify the HMR-aware module (for logging/debugging purposes).

## Methods

### onHmr

```ts
async onHmr(event: HmrUpdateEvent): Promise<void>
```

Method that is called on HMR update and receives the full update event.
