-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
Description
Design-type metadata such as design:type, design:paramtypes and design:returntype are great to build modern JavaScript frameworks. It would be very useful to also have a design:generics metadata to keep track of generic types, e.g.
class Foo {}
class Bar {}
class Baz {
map: Map<Foo, Bar>;
}would transpile to
// ... Foo and Bar functions
var Baz = (function () {
function Baz() {
}
__decorate([
__metadata('design:type', Map),
__metadata('design:generics', [ Foo, Bar ]),
], Baz.prototype, "map", void 0);
return Baz;
}());Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created