mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-18 05:43:11 -05:00
Implement the Stage 3 Decorators Proposal (#50820)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user