2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/extendingClassFromAliasAndUsageInIndexer_main.ts ===
|
|
|
|
import Backbone = require("extendingClassFromAliasAndUsageInIndexer_backbone");
|
2015-04-13 23:01:57 +02:00
|
|
|
>Backbone : typeof Backbone, Symbol(Backbone, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
import moduleA = require("extendingClassFromAliasAndUsageInIndexer_moduleA");
|
2015-04-13 23:01:57 +02:00
|
|
|
>moduleA : typeof moduleA, Symbol(moduleA, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 0, 79))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
import moduleB = require("extendingClassFromAliasAndUsageInIndexer_moduleB");
|
2015-04-13 23:01:57 +02:00
|
|
|
>moduleB : typeof moduleB, Symbol(moduleB, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 1, 77))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
interface IHasVisualizationModel {
|
2015-04-13 23:01:57 +02:00
|
|
|
>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 2, 77))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
VisualizationModel: typeof Backbone.Model;
|
2015-04-13 23:01:57 +02:00
|
|
|
>VisualizationModel : typeof Backbone.Model, Symbol(VisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 3, 34))
|
|
|
|
>Backbone.Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 0))
|
|
|
|
>Backbone : typeof Backbone, Symbol(Backbone, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 0, 0))
|
|
|
|
>Model : typeof Backbone.Model, Symbol(Backbone.Model, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
var moduleATyped: IHasVisualizationModel = moduleA;
|
2015-04-13 23:01:57 +02:00
|
|
|
>moduleATyped : IHasVisualizationModel, Symbol(moduleATyped, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 6, 3))
|
|
|
|
>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 2, 77))
|
|
|
|
>moduleA : typeof moduleA, Symbol(moduleA, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 0, 79))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var moduleMap: { [key: string]: IHasVisualizationModel } = {
|
2015-04-13 23:01:57 +02:00
|
|
|
>moduleMap : { [key: string]: IHasVisualizationModel; }, Symbol(moduleMap, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 7, 3))
|
|
|
|
>key : string, Symbol(key, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 7, 18))
|
|
|
|
>IHasVisualizationModel : IHasVisualizationModel, Symbol(IHasVisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 2, 77))
|
2014-10-13 15:56:58 +02:00
|
|
|
>{ "moduleA": moduleA, "moduleB": moduleB} : { [x: string]: typeof moduleA; "moduleA": typeof moduleA; "moduleB": typeof moduleB; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
"moduleA": moduleA,
|
2015-04-13 23:01:57 +02:00
|
|
|
>moduleA : typeof moduleA, Symbol(moduleA, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 0, 79))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
"moduleB": moduleB
|
2015-04-13 23:01:57 +02:00
|
|
|
>moduleB : typeof moduleB, Symbol(moduleB, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 1, 77))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
var moduleName: string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>moduleName : string, Symbol(moduleName, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 11, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var visModel = new moduleMap[moduleName].VisualizationModel();
|
2015-04-13 23:01:57 +02:00
|
|
|
>visModel : Backbone.Model, Symbol(visModel, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 12, 3))
|
2014-08-25 19:36:12 +02:00
|
|
|
>new moduleMap[moduleName].VisualizationModel() : Backbone.Model
|
2015-04-13 23:01:57 +02:00
|
|
|
>moduleMap[moduleName].VisualizationModel : typeof Backbone.Model, Symbol(IHasVisualizationModel.VisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 3, 34))
|
2014-08-15 23:33:16 +02:00
|
|
|
>moduleMap[moduleName] : IHasVisualizationModel
|
2015-04-13 23:01:57 +02:00
|
|
|
>moduleMap : { [key: string]: IHasVisualizationModel; }, Symbol(moduleMap, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 7, 3))
|
|
|
|
>moduleName : string, Symbol(moduleName, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 11, 3))
|
|
|
|
>VisualizationModel : typeof Backbone.Model, Symbol(IHasVisualizationModel.VisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_main.ts, 3, 34))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/extendingClassFromAliasAndUsageInIndexer_backbone.ts ===
|
|
|
|
export class Model {
|
2015-04-13 23:01:57 +02:00
|
|
|
>Model : Model, Symbol(Model, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
public someData: string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>someData : string, Symbol(someData, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 20))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/compiler/extendingClassFromAliasAndUsageInIndexer_moduleA.ts ===
|
|
|
|
import Backbone = require("extendingClassFromAliasAndUsageInIndexer_backbone");
|
2015-04-13 23:01:57 +02:00
|
|
|
>Backbone : typeof Backbone, Symbol(Backbone, Decl(extendingClassFromAliasAndUsageInIndexer_moduleA.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class VisualizationModel extends Backbone.Model {
|
2015-04-13 23:01:57 +02:00
|
|
|
>VisualizationModel : VisualizationModel, Symbol(VisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_moduleA.ts, 0, 79))
|
|
|
|
>Backbone.Model : any, Symbol(Backbone.Model, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 0))
|
|
|
|
>Backbone : typeof Backbone, Symbol(Backbone, Decl(extendingClassFromAliasAndUsageInIndexer_moduleA.ts, 0, 0))
|
|
|
|
>Model : Backbone.Model, Symbol(Backbone.Model, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// interesting stuff here
|
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/compiler/extendingClassFromAliasAndUsageInIndexer_moduleB.ts ===
|
|
|
|
import Backbone = require("extendingClassFromAliasAndUsageInIndexer_backbone");
|
2015-04-13 23:01:57 +02:00
|
|
|
>Backbone : typeof Backbone, Symbol(Backbone, Decl(extendingClassFromAliasAndUsageInIndexer_moduleB.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class VisualizationModel extends Backbone.Model {
|
2015-04-13 23:01:57 +02:00
|
|
|
>VisualizationModel : VisualizationModel, Symbol(VisualizationModel, Decl(extendingClassFromAliasAndUsageInIndexer_moduleB.ts, 0, 79))
|
|
|
|
>Backbone.Model : any, Symbol(Backbone.Model, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 0))
|
|
|
|
>Backbone : typeof Backbone, Symbol(Backbone, Decl(extendingClassFromAliasAndUsageInIndexer_moduleB.ts, 0, 0))
|
|
|
|
>Model : Backbone.Model, Symbol(Backbone.Model, Decl(extendingClassFromAliasAndUsageInIndexer_backbone.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// different interesting stuff here
|
|
|
|
}
|
|
|
|
|