28 lines
841 B
TypeScript
28 lines
841 B
TypeScript
//// [tests/cases/compiler/declFileForExportedImport.ts] ////
|
|
|
|
//// [declFileForExportedImport_0.ts]
|
|
export var x: number;
|
|
|
|
//// [declFileForExportedImport_1.ts]
|
|
///<reference path='declFileForExportedImport_0.ts'/>
|
|
export import a = require('declFileForExportedImport_0');
|
|
var y = a.x;
|
|
|
|
export import b = a;
|
|
var z = b.x;
|
|
|
|
//// [declFileForExportedImport_0.js]
|
|
//// [declFileForExportedImport_1.js]
|
|
///<reference path='declFileForExportedImport_0.ts'/>
|
|
exports.a = require('declFileForExportedImport_0');
|
|
var y = exports.a.x;
|
|
exports.b = exports.a;
|
|
var z = exports.b.x;
|
|
|
|
|
|
//// [declFileForExportedImport_0.d.ts]
|
|
export declare var x: number;
|
|
//// [declFileForExportedImport_1.d.ts]
|
|
/// <reference path="declFileForExportedImport_0.d.ts" />
|
|
export import a = require('declFileForExportedImport_0');
|
|
export import b = a;
|