Skip to content

Use reflect-metadata to determine complex types when possible #98

Answered by hardy925
ms1111 asked this question in Ideas
Discussion options

You must be logged in to vote

I definitely looked into this - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect and https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties

One of my first iterations tried to use reflection but we found the double indexed map to be better. It was also important for this to be zero-dependency (IDK why - but it is). IIRC we found that to do this we would need the decorator on the class, which is completely different from how property decorators work and we ran into issues with that approach as well.

That said, knowing that a property value type is Serializable is interesting.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hardy925
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
enhancement New feature or request wontfix This will not be worked on
2 participants