151 lines
4.1 KiB
Text
151 lines
4.1 KiB
Text
=== tests/cases/compiler/declFileGenericType2.ts ===
|
|
|
|
declare module templa.mvc {
|
|
>templa : typeof templa
|
|
>mvc : typeof mvc
|
|
|
|
interface IModel {
|
|
>IModel : IModel
|
|
}
|
|
}
|
|
declare module templa.mvc {
|
|
>templa : typeof templa
|
|
>mvc : typeof mvc
|
|
|
|
interface IController<ModelType extends templa.mvc.IModel> {
|
|
>IController : IController<ModelType>
|
|
>ModelType : ModelType
|
|
>templa : any
|
|
>mvc : any
|
|
>IModel : IModel
|
|
}
|
|
}
|
|
declare module templa.mvc {
|
|
>templa : typeof templa
|
|
>mvc : typeof mvc
|
|
|
|
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
|
|
}
|
|
}
|
|
declare module templa.mvc.composite {
|
|
>templa : typeof templa
|
|
>mvc : typeof mvc
|
|
>composite : any
|
|
|
|
interface ICompositeControllerModel extends mvc.IModel {
|
|
>ICompositeControllerModel : ICompositeControllerModel
|
|
>mvc.IModel : any
|
|
>mvc : typeof mvc
|
|
>IModel : IModel
|
|
|
|
getControllers(): mvc.IController<mvc.IModel>[];
|
|
>getControllers : () => IController<IModel>[]
|
|
>mvc : any
|
|
>IController : IController<ModelType>
|
|
>mvc : any
|
|
>IModel : IModel
|
|
}
|
|
}
|
|
module templa.dom.mvc {
|
|
>templa : typeof templa
|
|
>dom : typeof dom
|
|
>mvc : typeof mvc
|
|
|
|
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
|
|
}
|
|
}
|
|
// Module
|
|
module templa.dom.mvc {
|
|
>templa : typeof templa
|
|
>dom : typeof dom
|
|
>mvc : typeof mvc
|
|
|
|
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
|
|
>templa.mvc.AbstractController : any
|
|
>templa.mvc : typeof templa.mvc
|
|
>templa : typeof templa
|
|
>mvc : typeof templa.mvc
|
|
>AbstractController : templa.mvc.AbstractController<ModelType>
|
|
>ModelType : ModelType
|
|
>IElementController : IElementController<ModelType>
|
|
>ModelType : ModelType
|
|
|
|
constructor() {
|
|
super();
|
|
>super() : void
|
|
>super : typeof templa.mvc.AbstractController
|
|
}
|
|
}
|
|
}
|
|
// Module
|
|
module templa.dom.mvc.composite {
|
|
>templa : typeof templa
|
|
>dom : typeof dom
|
|
>mvc : typeof mvc
|
|
>composite : typeof composite
|
|
|
|
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
|
|
>templa.dom.mvc.AbstractElementController : any
|
|
>templa.dom.mvc : typeof mvc
|
|
>templa.dom : typeof dom
|
|
>templa : typeof templa
|
|
>dom : typeof dom
|
|
>mvc : typeof mvc
|
|
>AbstractElementController : AbstractElementController<ModelType>
|
|
>ModelType : ModelType
|
|
|
|
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
|
|
|
|
constructor() {
|
|
super();
|
|
>super() : void
|
|
>super : typeof AbstractElementController
|
|
|
|
this._controllers = [];
|
|
>this._controllers = [] : undefined[]
|
|
>this._controllers : templa.mvc.IController<templa.mvc.IModel>[]
|
|
>this : AbstractCompositeElementController<ModelType>
|
|
>_controllers : templa.mvc.IController<templa.mvc.IModel>[]
|
|
>[] : undefined[]
|
|
}
|
|
}
|
|
}
|
|
|