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