---
title: decorators
configName: source.decorators
---

# source.decorators

- **Type:**

```ts
type Decorators = {
  version?: 'legacy' | '2022-03';
};
```

- **Default:**

```ts
const defaultDecorators = {
  version: 'legacy';
};
```

Used to configure the decorators syntax.

import RsbuildConig from '@site-docs-en/components/rsbuild-config-tooltip';

<RsbuildConig />
