mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
684 B
TypeScript
31 lines
684 B
TypeScript
//// [tests/cases/compiler/genericClassImplementingGenericInterfaceFromAnotherModule.ts] ////
|
|
|
|
//// [genericClassImplementingGenericInterfaceFromAnotherModule.ts]
|
|
namespace foo {
|
|
export interface IFoo<T> { }
|
|
}
|
|
namespace bar {
|
|
export class Foo<T> implements foo.IFoo<T> { }
|
|
}
|
|
|
|
|
|
//// [genericClassImplementingGenericInterfaceFromAnotherModule.js]
|
|
"use strict";
|
|
var bar;
|
|
(function (bar) {
|
|
class Foo {
|
|
}
|
|
bar.Foo = Foo;
|
|
})(bar || (bar = {}));
|
|
|
|
|
|
//// [genericClassImplementingGenericInterfaceFromAnotherModule.d.ts]
|
|
declare namespace foo {
|
|
interface IFoo<T> {
|
|
}
|
|
}
|
|
declare namespace bar {
|
|
class Foo<T> implements foo.IFoo<T> {
|
|
}
|
|
}
|