mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
35 lines
587 B
TypeScript
35 lines
587 B
TypeScript
// @verbatimModuleSyntax: true
|
|
// @target: esnext
|
|
// @module: commonjs
|
|
// @moduleResolution: node
|
|
|
|
// @Filename: /a.ts
|
|
interface I {}
|
|
export = I;
|
|
|
|
// @Filename: /b.ts
|
|
import I = require("./a");
|
|
|
|
// @Filename: /c.ts
|
|
interface I {}
|
|
namespace I {
|
|
export const x = 1;
|
|
}
|
|
export = I;
|
|
|
|
// @Filename: /d.ts
|
|
import I = require("./c");
|
|
import type J = require("./c");
|
|
export = J;
|
|
|
|
// @Filename: /e.d.ts
|
|
interface I {}
|
|
export = I;
|
|
|
|
// @Filename: /f.ts
|
|
import type I = require("./e");
|
|
const I = {};
|
|
export = I;
|
|
|
|
// @Filename: /z.ts
|
|
// test harness is weird if the last file includs a require >:(
|