---
url: /api/kiln/interfaces/EventType.md
---
[Kiln API](../../index.md) / [kiln](../index.md) / EventType

# Interface: EventType\<T>

A typed event channel: `event<{ a: Entity; b: Entity }>()`.

## Type Parameters

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

## Properties

| Property | Modifier | Type | Description |
| ------ | ------ | ------ | ------ |
|  `[$event]` | `readonly` | `true` | - |
|  `__payload?` | `readonly` | `T` | Phantom field carrying the payload type. |
|  `name` | `readonly` | `string` | - |

## Methods

### named()

```ts
named(name): this;
```

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `name` | `string` |

#### Returns

`this`
