30 lines
635 B
TypeScript
30 lines
635 B
TypeScript
//// [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> {
|
|
}
|
|
}
|