---
title: Overview
sidebar_position: 0
toc_min_heading_level: 2
toc_max_heading_level: 3
---

import { Tabs, TabItem } from '@astrojs/starlight/components';

TypeSpec library providing events bindings

## Install

<Tabs>
<TabItem  label="In a spec" default>

```bash
npm install @typespec/events
```

</TabItem>
<TabItem  label="In a library" default>

```bash
npm install --save-peer @typespec/events
```

</TabItem>
</Tabs>

## TypeSpec.Events

### Decorators

- [`@contentType`](./decorators.md#@TypeSpec.Events.contentType)
- [`@data`](./decorators.md#@TypeSpec.Events.data)
- [`@events`](./decorators.md#@TypeSpec.Events.events)
