59 lines
1.9 KiB
TypeScript
59 lines
1.9 KiB
TypeScript
//// [tests/cases/compiler/aliasUsageInVarAssignment.ts] ////
|
|
|
|
//// [aliasUsageInVarAssignment_backbone.ts]
|
|
export class Model {
|
|
public someData: string;
|
|
}
|
|
|
|
//// [aliasUsageInVarAssignment_moduleA.ts]
|
|
import Backbone = require("./aliasUsageInVarAssignment_backbone");
|
|
export class VisualizationModel extends Backbone.Model {
|
|
// interesting stuff here
|
|
}
|
|
|
|
//// [aliasUsageInVarAssignment_main.ts]
|
|
import Backbone = require("./aliasUsageInVarAssignment_backbone");
|
|
import moduleA = require("./aliasUsageInVarAssignment_moduleA");
|
|
interface IHasVisualizationModel {
|
|
VisualizationModel: typeof Backbone.Model;
|
|
}
|
|
var i: IHasVisualizationModel;
|
|
var m: typeof moduleA = i;
|
|
|
|
//// [aliasUsageInVarAssignment_backbone.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
var Model = (function () {
|
|
function Model() {
|
|
}
|
|
return Model;
|
|
}());
|
|
exports.Model = Model;
|
|
//// [aliasUsageInVarAssignment_moduleA.js]
|
|
"use strict";
|
|
var __extends = (this && this.__extends) || (function () {
|
|
var extendStatics = Object.setPrototypeOf ||
|
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
return function (d, b) {
|
|
extendStatics(d, b);
|
|
function __() { this.constructor = d; }
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
exports.__esModule = true;
|
|
var Backbone = require("./aliasUsageInVarAssignment_backbone");
|
|
var VisualizationModel = (function (_super) {
|
|
__extends(VisualizationModel, _super);
|
|
function VisualizationModel() {
|
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
}
|
|
return VisualizationModel;
|
|
}(Backbone.Model));
|
|
exports.VisualizationModel = VisualizationModel;
|
|
//// [aliasUsageInVarAssignment_main.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
var i;
|
|
var m = i;
|