Closed 87vrvk9k closed 4 years ago
@chrisd08 expected output here is:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var TestMappedClass = /** @class */ (function () {
function TestMappedClass() {
this._private_testMapped = {};
this._private_testMapped.a = {};
}
return TestMappedClass;
}());
am I right (don't rename a
)?
@timocov Yes that's correct
Fixed in 74ed470. If a mapped type is exported, you don't need to mark it as public now. But anyway, if a mapped type isn't exported, you can mark the whole type as public in this case (instead of indexer or property keys) (see added test cases for the reference).
Mapped types do not appear to respect @public jsdoc
Results in
Note: I tried it using Record as well and it has the same issue