25 lines
472 B
JavaScript
25 lines
472 B
JavaScript
//// [baseTypeAfterDerivedType.ts]
|
|
interface Derived extends Base {
|
|
method(...args: any[]): void;
|
|
}
|
|
|
|
interface Base {
|
|
method(...args: any[]): void;
|
|
}
|
|
|
|
class Derived2 implements Base2 {
|
|
method(...args: any[]): void { }
|
|
}
|
|
|
|
interface Base2 {
|
|
method(...args: any[]): void;
|
|
}
|
|
|
|
|
|
//// [baseTypeAfterDerivedType.js]
|
|
var Derived2 = (function () {
|
|
function Derived2() {
|
|
}
|
|
Derived2.prototype.method = function () { };
|
|
return Derived2;
|
|
})();
|