Implement the Stage 3 Decorators Proposal (#50820)

This commit is contained in:
Ron Buckton
2023-01-19 17:54:12 -05:00
committed by GitHub
parent 20182cf848
commit 5b18979697
1263 changed files with 31412 additions and 2813 deletions

View File

@@ -218,7 +218,9 @@ const libEntries: [string, string][] = [
["esnext.bigint", "lib.es2020.bigint.d.ts"],
["esnext.string", "lib.es2022.string.d.ts"],
["esnext.promise", "lib.es2021.promise.d.ts"],
["esnext.weakref", "lib.es2021.weakref.d.ts"]
["esnext.weakref", "lib.es2021.weakref.d.ts"],
["decorators", "lib.decorators.d.ts"],
["decorators.legacy", "lib.decorators.legacy.d.ts"],
];
/**
@@ -1157,10 +1159,11 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
{
name: "experimentalDecorators",
type: "boolean",
affectsEmit: true,
affectsSemanticDiagnostics: true,
affectsBuildInfo: true,
category: Diagnostics.Language_and_Environment,
description: Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,
description: Diagnostics.Enable_experimental_support_for_legacy_experimental_decorators,
defaultValueDescription: false,
},
{