Skip to content

Commit d446d06

Browse files
committed
Added module: none baseline
1 parent 195e69c commit d446d06

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
tests/cases/compiler/a.ts(1,14): error TS1148: Cannot compile modules unless the '--module' flag is provided with a valid module type. Consider setting the 'module' compiler option in a 'tsconfig.json' file.
2+
3+
4+
==== tests/cases/compiler/a.ts (1 errors) ====
5+
export class Foo {
6+
~~~
7+
!!! error TS1148: Cannot compile modules unless the '--module' flag is provided with a valid module type. Consider setting the 'module' compiler option in a 'tsconfig.json' file.
8+
foo: string;
9+
}
10+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//// [a.ts]
2+
export class Foo {
3+
foo: string;
4+
}
5+
6+
7+
//// [a.js]
8+
"use strict";
9+
var Foo = (function () {
10+
function Foo() {
11+
}
12+
return Foo;
13+
}());
14+
exports.Foo = Foo;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// @module: none
2+
// @Filename: a.ts
3+
export class Foo {
4+
foo: string;
5+
}

0 commit comments

Comments
 (0)