You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, when we emit meta data of one property that is defined as:
classA{
@Property()p1: 's1'|'s2';}
We emit the metadata as:
__metadata("design:type",String)
So, whoever is using this metadata cannot know the literal types of p1. A library author has to decorate the literal types s1 and s2 in order to access these literal types:
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Activity
mhegazy commentedon Oct 14, 2017
The metadata provided are not meant to be a reflective runtime type system. you can find more discussion about this in #3060 and #3628
mhegazy commentedon Oct 30, 2017
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.