19 lines
336 B
TypeScript
19 lines
336 B
TypeScript
//// [requiredInitializedParameter2.ts]
|
|
interface I1 {
|
|
method();
|
|
}
|
|
|
|
class C1 implements I1 {
|
|
method(a = 0, b) { }
|
|
}
|
|
|
|
//// [requiredInitializedParameter2.js]
|
|
var C1 = (function () {
|
|
function C1() {
|
|
}
|
|
C1.prototype.method = function (a, b) {
|
|
if (a === void 0) { a = 0; }
|
|
};
|
|
return C1;
|
|
})();
|