13 lines
No EOL
527 B
Text
13 lines
No EOL
527 B
Text
tests/cases/compiler/a.ts(3,1): error TS1203: Export assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'export default' instead.
|
|
|
|
|
|
==== tests/cases/compiler/a.ts (1 errors) ====
|
|
|
|
var a = 10;
|
|
export = a; // Error: export = not allowed in ES6
|
|
~~~~~~~~~~~
|
|
!!! error TS1203: Export assignment cannot be used when targeting ECMAScript 6 or higher. Consider using 'export default' instead.
|
|
|
|
==== tests/cases/compiler/b.ts (0 errors) ====
|
|
import * as a from "a";
|
|
|