TypeScript/tests/baselines/reference/declFileGenericType2.types

152 lines
4.2 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/declFileGenericType2.ts ===
declare module templa.mvc {
>templa : typeof templa
>mvc : typeof mvc
2014-08-15 23:33:16 +02:00
interface IModel {
>IModel : IModel
2014-08-15 23:33:16 +02:00
}
}
declare module templa.mvc {
>templa : typeof templa
>mvc : typeof mvc
2014-08-15 23:33:16 +02:00
interface IController<ModelType extends templa.mvc.IModel> {
>IController : IController<ModelType>
>ModelType : ModelType
>templa : any
>mvc : any
>IModel : IModel
2014-08-15 23:33:16 +02:00
}
}
declare module templa.mvc {
>templa : typeof templa
>mvc : typeof mvc
2014-08-15 23:33:16 +02:00
class AbstractController<ModelType extends templa.mvc.IModel> implements mvc.IController<ModelType> {
>AbstractController : AbstractController<ModelType>
>ModelType : ModelType
>templa : any
>mvc : any
>IModel : IModel
>mvc.IController : any
>mvc : typeof mvc
>IController : IController<ModelType>
>ModelType : ModelType
2014-08-15 23:33:16 +02:00
}
}
declare module templa.mvc.composite {
>templa : typeof templa
>mvc : typeof mvc
>composite : any
2014-08-15 23:33:16 +02:00
interface ICompositeControllerModel extends mvc.IModel {
>ICompositeControllerModel : ICompositeControllerModel
>mvc.IModel : any
>mvc : typeof mvc
>IModel : IModel
2014-08-15 23:33:16 +02:00
getControllers(): mvc.IController<mvc.IModel>[];
>getControllers : () => IController<IModel>[]
>mvc : any
>IController : IController<ModelType>
>mvc : any
>IModel : IModel
2014-08-15 23:33:16 +02:00
}
}
module templa.dom.mvc {
>templa : typeof templa
>dom : typeof dom
>mvc : typeof mvc
2014-08-15 23:33:16 +02:00
export interface IElementController<ModelType extends templa.mvc.IModel> extends templa.mvc.IController<ModelType> {
>IElementController : IElementController<ModelType>
>ModelType : ModelType
>templa : any
>mvc : any
>IModel : templa.mvc.IModel
>templa.mvc.IController : any
>templa.mvc : typeof templa.mvc
>templa : typeof templa
>mvc : typeof templa.mvc
>IController : templa.mvc.IController<ModelType>
>ModelType : ModelType
2014-08-15 23:33:16 +02:00
}
}
// Module
module templa.dom.mvc {
>templa : typeof templa
>dom : typeof dom
>mvc : typeof mvc
2014-08-15 23:33:16 +02:00
export class AbstractElementController<ModelType extends templa.mvc.IModel> extends templa.mvc.AbstractController<ModelType> implements IElementController<ModelType> {
>AbstractElementController : AbstractElementController<ModelType>
>ModelType : ModelType
>templa : any
>mvc : any
>IModel : templa.mvc.IModel
2015-06-16 15:55:52 +02:00
>templa.mvc.AbstractController : templa.mvc.AbstractController<ModelType>
>templa.mvc : typeof templa.mvc
>templa : typeof templa
>mvc : typeof templa.mvc
2015-06-16 00:46:29 +02:00
>AbstractController : typeof templa.mvc.AbstractController
>ModelType : ModelType
>IElementController : IElementController<ModelType>
>ModelType : ModelType
2014-08-15 23:33:16 +02:00
constructor() {
super();
>super() : void
>super : typeof templa.mvc.AbstractController
2014-08-15 23:33:16 +02:00
}
}
}
// Module
module templa.dom.mvc.composite {
>templa : typeof templa
>dom : typeof dom
>mvc : typeof mvc
>composite : typeof composite
2014-08-15 23:33:16 +02:00
export class AbstractCompositeElementController<ModelType extends templa.mvc.composite.ICompositeControllerModel> extends templa.dom.mvc.AbstractElementController<ModelType> {
>AbstractCompositeElementController : AbstractCompositeElementController<ModelType>
>ModelType : ModelType
>templa : any
>mvc : any
>composite : any
>ICompositeControllerModel : templa.mvc.composite.ICompositeControllerModel
2015-06-16 15:55:52 +02:00
>templa.dom.mvc.AbstractElementController : AbstractElementController<ModelType>
>templa.dom.mvc : typeof mvc
>templa.dom : typeof dom
>templa : typeof templa
>dom : typeof dom
>mvc : typeof mvc
2015-06-16 00:46:29 +02:00
>AbstractElementController : typeof AbstractElementController
>ModelType : ModelType
2014-08-15 23:33:16 +02:00
public _controllers: templa.mvc.IController<templa.mvc.IModel>[];
>_controllers : templa.mvc.IController<templa.mvc.IModel>[]
>templa : any
>mvc : any
>IController : templa.mvc.IController<ModelType>
>templa : any
>mvc : any
>IModel : templa.mvc.IModel
2014-08-15 23:33:16 +02:00
constructor() {
super();
>super() : void
>super : typeof AbstractElementController
2014-08-15 23:33:16 +02:00
this._controllers = [];
2014-10-13 15:56:58 +02:00
>this._controllers = [] : undefined[]
>this._controllers : templa.mvc.IController<templa.mvc.IModel>[]
>this : AbstractCompositeElementController<ModelType>
>_controllers : templa.mvc.IController<templa.mvc.IModel>[]
2014-10-13 15:56:58 +02:00
>[] : undefined[]
2014-08-15 23:33:16 +02:00
}
}
}