2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/aliasUsageInObjectLiteral_main.ts ===
|
|
|
|
import Backbone = require("aliasUsageInObjectLiteral_backbone");
|
2014-08-28 21:40:58 +02:00
|
|
|
>Backbone : typeof Backbone
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
import moduleA = require("aliasUsageInObjectLiteral_moduleA");
|
2014-08-28 21:40:58 +02:00
|
|
|
>moduleA : typeof moduleA
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
interface IHasVisualizationModel {
|
|
|
|
>IHasVisualizationModel : IHasVisualizationModel
|
|
|
|
|
|
|
|
VisualizationModel: typeof Backbone.Model;
|
2014-08-25 19:36:12 +02:00
|
|
|
>VisualizationModel : typeof Backbone.Model
|
|
|
|
>Backbone : typeof Backbone
|
|
|
|
>Model : typeof Backbone.Model
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
var a: { x: typeof moduleA } = { x: moduleA };
|
2014-08-25 19:36:12 +02:00
|
|
|
>a : { x: typeof moduleA; }
|
|
|
|
>x : typeof moduleA
|
|
|
|
>moduleA : typeof moduleA
|
|
|
|
>{ x: moduleA } : { x: typeof moduleA; }
|
|
|
|
>x : typeof moduleA
|
|
|
|
>moduleA : typeof moduleA
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var b: { x: IHasVisualizationModel } = { x: moduleA };
|
|
|
|
>b : { x: IHasVisualizationModel; }
|
|
|
|
>x : IHasVisualizationModel
|
|
|
|
>IHasVisualizationModel : IHasVisualizationModel
|
2014-08-25 19:36:12 +02:00
|
|
|
>{ x: moduleA } : { x: typeof moduleA; }
|
|
|
|
>x : typeof moduleA
|
|
|
|
>moduleA : typeof moduleA
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var c: { y: { z: IHasVisualizationModel } } = { y: { z: moduleA } };
|
|
|
|
>c : { y: { z: IHasVisualizationModel; }; }
|
|
|
|
>y : { z: IHasVisualizationModel; }
|
|
|
|
>z : IHasVisualizationModel
|
|
|
|
>IHasVisualizationModel : IHasVisualizationModel
|
2014-08-25 19:36:12 +02:00
|
|
|
>{ y: { z: moduleA } } : { y: { z: typeof moduleA; }; }
|
|
|
|
>y : { z: typeof moduleA; }
|
|
|
|
>{ z: moduleA } : { z: typeof moduleA; }
|
|
|
|
>z : typeof moduleA
|
|
|
|
>moduleA : typeof moduleA
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/aliasUsageInObjectLiteral_backbone.ts ===
|
|
|
|
export class Model {
|
|
|
|
>Model : Model
|
|
|
|
|
|
|
|
public someData: string;
|
|
|
|
>someData : string
|
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/compiler/aliasUsageInObjectLiteral_moduleA.ts ===
|
|
|
|
import Backbone = require("aliasUsageInObjectLiteral_backbone");
|
2014-08-28 21:40:58 +02:00
|
|
|
>Backbone : typeof Backbone
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class VisualizationModel extends Backbone.Model {
|
|
|
|
>VisualizationModel : VisualizationModel
|
2014-08-28 21:40:58 +02:00
|
|
|
>Backbone : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Model : Backbone.Model
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// interesting stuff here
|
|
|
|
}
|
|
|
|
|