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

# source.decorators

- **类型：**

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

- **默认值：**

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

用于配置装饰器语法。

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

<RsbuildConig />
