---
url: /api/kiln/functions/event.md
---
[Kiln API](../../index.md) / [kiln](../index.md) / event

# Function: event()

```ts
function event<T>(): EventType<T>;
```

Defines a typed event. Events live for two runs of the phase that emitted them.

## Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `T` | `void` |

## Returns

[`EventType`](../interfaces/EventType.md)<`T`>
