doc(compiler/ts): fix documentation typo about __decorator code generation

When __decorator applied to method, the last parameter (descriptor)
is null, not undefined
This commit is contained in:
Charly POLY 2016-11-24 10:16:21 +01:00
parent 4701eb70e2
commit 7b37918a11

View File

@ -1353,13 +1353,13 @@ namespace ts {
// __metadata("design:type", Function),
// __metadata("design:paramtypes", [Object]),
// __metadata("design:returntype", void 0)
// ], C.prototype, "method", undefined);
// ], C.prototype, "method", null);
//
// The emit for an accessor is:
//
// __decorate([
// dec
// ], C.prototype, "accessor", undefined);
// ], C.prototype, "accessor", null);
//
// The emit for a property is:
//