mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
fef4d68413
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
23 lines
463 B
TypeScript
23 lines
463 B
TypeScript
// @erasableSyntaxOnly: true
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @noEmit: true
|
|
|
|
// JavaScript files should not have erasableSyntaxOnly checks
|
|
// because they are already "erased" by definition.
|
|
|
|
// @Filename: bar.cjs
|
|
module.exports = {
|
|
a: 1,
|
|
}
|
|
|
|
// @Filename: foo.js
|
|
module.exports = {
|
|
b: 2,
|
|
}
|
|
|
|
// @Filename: index.ts
|
|
// These should still error because they are in a TypeScript file
|
|
import bar = require("./bar.cjs");
|
|
import foo = require("./foo.js");
|