2015-09-15 20:43:28 +02:00
|
|
|
// @module: commonjs
|
2014-08-07 23:47:49 +02:00
|
|
|
// @target: ES5
|
2014-07-13 01:04:16 +02:00
|
|
|
// @Filename: aliasUsage1_backbone.ts
|
|
|
|
export class Model {
|
|
|
|
public someData: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
// @Filename: aliasUsage1_moduleA.ts
|
2015-09-15 20:43:28 +02:00
|
|
|
import Backbone = require("./aliasUsage1_backbone");
|
2014-07-13 01:04:16 +02:00
|
|
|
export class VisualizationModel extends Backbone.Model {
|
|
|
|
// interesting stuff here
|
|
|
|
}
|
|
|
|
|
|
|
|
// @Filename: aliasUsage1_main.ts
|
2015-09-15 20:43:28 +02:00
|
|
|
import Backbone = require("./aliasUsage1_backbone");
|
|
|
|
import moduleA = require("./aliasUsage1_moduleA");
|
2014-07-13 01:04:16 +02:00
|
|
|
interface IHasVisualizationModel {
|
|
|
|
VisualizationModel: typeof Backbone.Model;
|
|
|
|
}
|
|
|
|
class C2 {
|
|
|
|
x: IHasVisualizationModel;
|
|
|
|
get A() {
|
|
|
|
return this.x;
|
|
|
|
}
|
|
|
|
set A(x) {
|
|
|
|
x = moduleA;
|
|
|
|
}
|
|
|
|
}
|