swc/crates/swc_ecma_parser/tests/tsc/topLevelFileModule.ts

12 lines
243 B
TypeScript
Raw Normal View History

// @module: commonjs
// @Filename: vs/foo_0.ts
export var x: number;
// @Filename: vs/fum.d.ts
export declare var y: number;
// @Filename: foo_1.ts
import foo = require("./vs/foo_0");
import fum = require("./vs/fum");
var z = foo.x + fum.y;