mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 18:28:13 +03:00
13 lines
289 B
TypeScript
13 lines
289 B
TypeScript
// @module: commonjs
|
|
// @Filename: foo_0.d.ts
|
|
export var x: number = 42;
|
|
|
|
// @Filename: foo_0.ts
|
|
export var y: number = 42;
|
|
|
|
|
|
// @Filename: foo_1.ts
|
|
import foo = require("./foo_0");
|
|
var z1 = foo.x + 10; // Should error, as .ts preferred over .d.ts
|
|
var z2 = foo.y + 10; // Should resolve
|