2014-07-13 01:04:16 +02:00
|
|
|
//// [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]
|
|
|
|
exports.x;
|
|
|
|
//// [declFileForExportedImport_1.js]
|
|
|
|
exports.a = require('declFileForExportedImport_0');
|
|
|
|
var y = exports.a.x;
|
|
|
|
exports.b = exports.a;
|
|
|
|
var z = exports.b.x;
|
|
|
|
|
|
|
|
|
|
|
|
//// [declFileForExportedImport_0.d.ts]
|
2014-07-12 01:36:06 +02:00
|
|
|
export declare var x: number;
|
2014-07-13 01:04:16 +02:00
|
|
|
//// [declFileForExportedImport_1.d.ts]
|
|
|
|
/// <reference path='declFileForExportedImport_0.d.ts' />
|
|
|
|
export import a = require('declFileForExportedImport_0');
|
|
|
|
export import b = a;
|