2014-07-13 01:04:16 +02:00
|
|
|
//// [classImplementsImportedInterface.ts]
|
|
|
|
module M1 {
|
|
|
|
export interface I {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module M2 {
|
|
|
|
import T = M1.I;
|
|
|
|
class C implements T {
|
|
|
|
foo() {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [classImplementsImportedInterface.js]
|
|
|
|
var M2;
|
|
|
|
(function (M2) {
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
C.prototype.foo = function () { };
|
2014-07-13 01:04:16 +02:00
|
|
|
return C;
|
|
|
|
})();
|
|
|
|
})(M2 || (M2 = {}));
|