fix(49719): Incorrect error 2301 when using ES standard class properties (#49725)

* fix(49719): omit TS2301 error with enabled usedefineforclassfields

* show error for target lower than esnext with useddefineforclassfields enabled

* change target from esnext to es2022
This commit is contained in:
Oleksandr T
2022-07-20 14:36:35 -07:00
committed by GitHub
parent 2f51a9e859
commit 5702941c2f
18 changed files with 232 additions and 2 deletions
+2 -1
View File
@@ -141,7 +141,8 @@ namespace Harness {
"preserveConstEnums",
"skipLibCheck",
"exactOptionalPropertyTypes",
"useUnknownInCatchVariables"
"useDefineForClassFields",
"useUnknownInCatchVariables",
];
private fileName: string;
private justName: string;