mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
10
tests/baselines/reference/moduleNoneErrors.errors.txt
Normal file
10
tests/baselines/reference/moduleNoneErrors.errors.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
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.
|
||||
|
||||
|
||||
==== tests/cases/compiler/a.ts (1 errors) ====
|
||||
export class Foo {
|
||||
~~~
|
||||
!!! 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.
|
||||
foo: string;
|
||||
}
|
||||
|
||||
14
tests/baselines/reference/moduleNoneErrors.js
Normal file
14
tests/baselines/reference/moduleNoneErrors.js
Normal file
@@ -0,0 +1,14 @@
|
||||
//// [a.ts]
|
||||
export class Foo {
|
||||
foo: string;
|
||||
}
|
||||
|
||||
|
||||
//// [a.js]
|
||||
"use strict";
|
||||
var Foo = (function () {
|
||||
function Foo() {
|
||||
}
|
||||
return Foo;
|
||||
}());
|
||||
exports.Foo = Foo;
|
||||
5
tests/cases/compiler/moduleNoneErrors.ts
Normal file
5
tests/cases/compiler/moduleNoneErrors.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
// @module: none
|
||||
// @Filename: a.ts
|
||||
export class Foo {
|
||||
foo: string;
|
||||
}
|
||||
Reference in New Issue
Block a user