Skip to content

Commit 6bfabec

Browse files
committed
fix
1 parent 8cce66e commit 6bfabec

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

src/testRunner/unittests/services/transpile.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ var x = 0;`, {
279279
options: { compilerOptions: { locale: "en-us" }, fileName: "input.js", reportDiagnostics: true }
280280
});
281281

282+
transpilesCorrectly("Supports setting 'looseClassInheritanceStaticCheck'", "x;", {
283+
options: { compilerOptions: { looseClassInheritanceStaticCheck: true }, fileName: "input.js", reportDiagnostics: true }
284+
});
285+
282286
transpilesCorrectly("Supports setting 'module'", "x;", {
283287
options: { compilerOptions: { module: ModuleKind.CommonJS }, fileName: "input.js", reportDiagnostics: true }
284288
});

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2776,6 +2776,7 @@ declare namespace ts {
27762776
keyofStringsOnly?: boolean;
27772777
lib?: string[];
27782778
locale?: string;
2779+
looseClassInheritanceStaticCheck?: boolean;
27792780
mapRoot?: string;
27802781
maxNodeModuleJsDepth?: number;
27812782
module?: ModuleKind;
@@ -8921,6 +8922,7 @@ declare namespace ts.server.protocol {
89218922
jsx?: JsxEmit | ts.JsxEmit;
89228923
lib?: string[];
89238924
locale?: string;
8925+
looseClassInheritanceStaticCheck?: boolean;
89248926
mapRoot?: string;
89258927
maxNodeModuleJsDepth?: number;
89268928
module?: ModuleKind | ts.ModuleKind;

tests/baselines/reference/api/typescript.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2776,6 +2776,7 @@ declare namespace ts {
27762776
keyofStringsOnly?: boolean;
27772777
lib?: string[];
27782778
locale?: string;
2779+
looseClassInheritanceStaticCheck?: boolean;
27792780
mapRoot?: string;
27802781
maxNodeModuleJsDepth?: number;
27812782
module?: ModuleKind;

tests/baselines/reference/transpile/Supports setting looseClassInheritanceStaticCheck.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/baselines/reference/transpile/Supports setting looseClassInheritanceStaticCheck.oldTranspile.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)