mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
790 B
Plaintext
31 lines
790 B
Plaintext
//// [tests/cases/compiler/erasableSyntaxOnlyJS.ts] ////
|
|
|
|
=== index.ts ===
|
|
// These should still error because they are in a TypeScript file
|
|
import bar = require("./bar.cjs");
|
|
>bar : Symbol(bar, Decl(index.ts, 0, 0))
|
|
|
|
import foo = require("./foo.js");
|
|
>foo : Symbol(foo, Decl(index.ts, 1, 34))
|
|
|
|
=== bar.cjs ===
|
|
module.exports = {
|
|
>module.exports : Symbol(exports, Decl(bar.cjs, 0, 0))
|
|
>module : Symbol(module, Decl(bar.cjs, 0, 0))
|
|
>exports : Symbol(exports, Decl(bar.cjs, 0, 0))
|
|
|
|
a: 1,
|
|
>a : Symbol(a, Decl(bar.cjs, 0, 18))
|
|
}
|
|
|
|
=== foo.js ===
|
|
module.exports = {
|
|
>module.exports : Symbol(exports, Decl(foo.js, 0, 0))
|
|
>module : Symbol(module, Decl(foo.js, 0, 0))
|
|
>exports : Symbol(exports, Decl(foo.js, 0, 0))
|
|
|
|
b: 2,
|
|
>b : Symbol(b, Decl(foo.js, 0, 18))
|
|
}
|
|
|