> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Interface: Decorators

Used to configure the decorators syntax.

## Remarks

See [Decorators.version](#version) for more information.

## Properties

### version?

> `optional` **version?**: `"legacy"` | `"2022-03"`

Specify the decorator syntax version to be used.

#### Default Value

`'2022-03'`

#### Remarks

If you want to know the differences between different decorators versions, you can refer to: [How does this proposal compare to other versions of decorators?](https://github.com/tc39/proposal-decorators?tab=readme-ov-file#how-does-this-proposal-compare-to-other-versions-of-decorators)

#### Examples

`'2022-03'` corresponds to the Stage 3 decorator proposal, equivalent to the decorator syntax supported by TypeScript 5.0 by default.

```js
import { defineConfig } from '@lynx-js/rspeedy'

export default defineConfig({
  source: {
    decorators: { version: '2022-03' },
  },
})
```

`'legacy'` corresponds to TypeScript's `experimentalDecorators: true`.

```js
import { defineConfig } from '@lynx-js/rspeedy'

export default defineConfig({
  source: {
    decorators: { version: 'legacy' },
  },
})
```
