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

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

TypeSpec library for emitting openapi from the TypeSpec REST protocol binding

## Install

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

```bash
npm install @azure-tools/typespec-autorest
```

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

```bash
npm install --save-peer @azure-tools/typespec-autorest
```

</TabItem>
</Tabs>

## Emitter usage

[See documentation](./emitter.md)

## Autorest

### Decorators

- [`@example`](./decorators.md#@Autorest.example)
- [`@useRef`](./decorators.md#@Autorest.useRef)
