mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
462 B
TypeScript
22 lines
462 B
TypeScript
//// [tests/cases/conformance/externalModules/topLevelAmbientModule.ts] ////
|
|
|
|
//// [foo_0.ts]
|
|
declare module "foo" {
|
|
export var x: number;
|
|
}
|
|
|
|
//// [foo_1.ts]
|
|
/// <reference path="foo_0.ts"/>
|
|
import foo = require("foo");
|
|
var z = foo.x + 10;
|
|
|
|
|
|
//// [foo_0.js]
|
|
"use strict";
|
|
//// [foo_1.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
/// <reference path="foo_0.ts"/>
|
|
const foo = require("foo");
|
|
var z = foo.x + 10;
|