From 301c84bcf3db336776a4646f8e0119c7f66eb5a5 Mon Sep 17 00:00:00 2001 From: "gaoyuan.1226" Date: Fri, 10 Jan 2025 17:24:09 +0800 Subject: [PATCH] docs: tip decorators version differences --- website/docs/en/config/source/decorators.mdx | 2 ++ website/docs/zh/config/source/decorators.mdx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/website/docs/en/config/source/decorators.mdx b/website/docs/en/config/source/decorators.mdx index bde217930e..9fe2e8e87e 100644 --- a/website/docs/en/config/source/decorators.mdx +++ b/website/docs/en/config/source/decorators.mdx @@ -17,6 +17,8 @@ Used to configure the decorators syntax. Specify the decorator syntax version to be used. +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) + ### 2022-03 `2022-03` corresponds to the Stage 3 decorator proposal, equivalent to the decorator syntax supported by TypeScript 5.0 by default. diff --git a/website/docs/zh/config/source/decorators.mdx b/website/docs/zh/config/source/decorators.mdx index 724985ed66..ecf6ffdcf3 100644 --- a/website/docs/zh/config/source/decorators.mdx +++ b/website/docs/zh/config/source/decorators.mdx @@ -17,6 +17,8 @@ type Decorators = { 指定需要使用的装饰器语法版本。 +如果你希望了解不同装饰器版本的区别,可以参考:[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) + ### 2022-03 `2022-03` 对应装饰器 Stage 3 提案,等价于 TypeScript 5.0 默认支持的装饰器语法。