13 lines
269 B
TypeScript
13 lines
269 B
TypeScript
//// [tests/cases/conformance/externalModules/relativePathMustResolve.ts] ////
|
|
|
|
//// [foo_0.ts]
|
|
export var x = 42;
|
|
|
|
//// [foo_1.ts]
|
|
import foo = require('./test/foo');
|
|
var z = foo.x + 10;
|
|
|
|
|
|
//// [foo_1.js]
|
|
var foo = require('./test/foo');
|
|
var z = foo.x + 10;
|