Echo JS 0.11.0

<~>
Citrus 2960 days ago. link 2 points
It sounds like you're in the territory where using Typescript might provide you some tangible benefit.  That may be the least amount of extra typing into your code that you can get away with, and have the system stop you if there's a type mismatch.

The cost of that is a transpilation step.  Whether that's worth it, or even a good idea, is up to you.

Replies

tracker1 2958 days ago. link 1 point
I agree, tentatively... MY first thought was something decorator based for establishing the class/prototype for validation would be useful.  Though TS specifically wouldn't be necessary, it might be helpful beyond what Babel would offer here, especially wrt child properties as class instances.