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]
|
2014-08-14 15:57:59 +02:00
|
|
|
///<reference path='declFileForExportedImport_0.ts'/>
|
2014-07-13 01:04:16 +02:00
|
|
|
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]
|
2014-09-05 01:21:56 +02:00
|
|
|
/// <reference path="declFileForExportedImport_0.d.ts" />
|
2014-07-13 01:04:16 +02:00
|
|
|
export import a = require('declFileForExportedImport_0');
|
|
|
|
export import b = a;
|