2014-07-13 01:04:16 +02:00
|
|
|
//// [declFileForClassWithMultipleBaseClasses.ts]
|
|
|
|
|
|
|
|
class A {
|
|
|
|
foo() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
class B {
|
|
|
|
bar() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
interface I {
|
|
|
|
baz();
|
|
|
|
}
|
|
|
|
|
|
|
|
interface J {
|
|
|
|
bat();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class D implements I, J {
|
|
|
|
baz() { }
|
|
|
|
bat() { }
|
|
|
|
foo() { }
|
|
|
|
bar() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
interface I extends A, B {
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [declFileForClassWithMultipleBaseClasses.js]
|
|
|
|
var A = (function () {
|
|
|
|
function A() {
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
A.prototype.foo = function () { };
|
2014-07-13 01:04:16 +02:00
|
|
|
return A;
|
|
|
|
})();
|
|
|
|
var B = (function () {
|
|
|
|
function B() {
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
B.prototype.bar = function () { };
|
2014-07-13 01:04:16 +02:00
|
|
|
return B;
|
|
|
|
})();
|
|
|
|
var D = (function () {
|
|
|
|
function D() {
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
D.prototype.baz = function () { };
|
|
|
|
D.prototype.bat = function () { };
|
|
|
|
D.prototype.foo = function () { };
|
|
|
|
D.prototype.bar = function () { };
|
2014-07-13 01:04:16 +02:00
|
|
|
return D;
|
|
|
|
})();
|
|
|
|
|
|
|
|
|
|
|
|
//// [declFileForClassWithMultipleBaseClasses.d.ts]
|
2014-07-11 23:44:31 +02:00
|
|
|
declare class A {
|
2014-07-12 01:36:06 +02:00
|
|
|
foo(): void;
|
2014-07-11 23:44:31 +02:00
|
|
|
}
|
|
|
|
declare class B {
|
2014-07-12 01:36:06 +02:00
|
|
|
bar(): void;
|
2014-07-11 23:44:31 +02:00
|
|
|
}
|
|
|
|
interface I {
|
2014-07-12 01:36:06 +02:00
|
|
|
baz(): any;
|
2014-07-11 23:44:31 +02:00
|
|
|
}
|
|
|
|
interface J {
|
2014-07-12 01:36:06 +02:00
|
|
|
bat(): any;
|
2014-07-11 23:44:31 +02:00
|
|
|
}
|
2014-07-17 22:01:23 +02:00
|
|
|
declare class D implements I, J {
|
2014-07-12 01:36:06 +02:00
|
|
|
baz(): void;
|
|
|
|
bat(): void;
|
|
|
|
foo(): void;
|
|
|
|
bar(): void;
|
2014-07-11 23:44:31 +02:00
|
|
|
}
|
|
|
|
interface I extends A, B {
|
|
|
|
}
|