20 lines
398 B
TypeScript
20 lines
398 B
TypeScript
//// [requiredInitializedParameter4.ts]
|
|
class C1 {
|
|
method(a = 0, b) { }
|
|
}
|
|
|
|
//// [requiredInitializedParameter4.js]
|
|
var C1 = (function () {
|
|
function C1() {
|
|
}
|
|
C1.prototype.method = function (a, b) {
|
|
if (a === void 0) { a = 0; }
|
|
};
|
|
return C1;
|
|
}());
|
|
|
|
|
|
//// [requiredInitializedParameter4.d.ts]
|
|
declare class C1 {
|
|
method(a: number, b: any): void;
|
|
}
|