19 lines
397 B
TypeScript
19 lines
397 B
TypeScript
//// [tests/cases/conformance/externalModules/topLevelFileModule.ts] ////
|
|
|
|
//// [foo_0.ts]
|
|
export var x: number;
|
|
|
|
//// [fum.d.ts]
|
|
export declare var y: number;
|
|
|
|
//// [foo_1.ts]
|
|
import foo = require("vs/foo_0");
|
|
import fum = require("vs/fum");
|
|
var z = foo.x + fum.y;
|
|
|
|
|
|
//// [foo_0.js]
|
|
//// [foo_1.js]
|
|
var foo = require("vs/foo_0");
|
|
var fum = require("vs/fum");
|
|
var z = foo.x + fum.y;
|