TypeScript/tests/baselines/reference/genericClassImplementingGenericInterfaceFromAnotherModule.js

31 lines
635 B
JavaScript

//// [genericClassImplementingGenericInterfaceFromAnotherModule.ts]
module foo {
export interface IFoo<T> { }
}
module bar {
export class Foo<T> implements foo.IFoo<T> { }
}
//// [genericClassImplementingGenericInterfaceFromAnotherModule.js]
var bar;
(function (bar) {
var Foo = (function () {
function Foo() {
}
return Foo;
})();
bar.Foo = Foo;
})(bar || (bar = {}));
//// [genericClassImplementingGenericInterfaceFromAnotherModule.d.ts]
declare module foo {
interface IFoo<T> {
}
}
declare module bar {
class Foo<T> implements foo.IFoo<T> {
}
}