Oh yes, it’s definitely worth a try. And yes, I’m also not a fan of classes (in general), but as far as I know tsoa is the only library that supports swagger generation and validation for TypeScript. So I’d definitely check it out. Also, if you ever want to transition to C# you’ll find that the decorators are almost identical to what you’d find in .NET Core.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Mention of io-ts (github.com/gcanti/io-ts)! :D
Put it on every network calls and storage access and suddenly your apps is resilient af
Yea! That’s a great library! :) Have you tried tsoa yet for getting runtime checks at the front door of your APIs?
Not yet.
Seen tsoa's docs. Didn't get a chance to play with it since most of my time coding is done for proprietary code.
I was kinda intimidated on using it because of the decorator (not much of a fan) pattern and also controller class pattern.
So, didn't get a chance to put it on the roadmap too.
Is it that good and worth to try?
Oh yes, it’s definitely worth a try. And yes, I’m also not a fan of classes (in general), but as far as I know tsoa is the only library that supports swagger generation and validation for TypeScript. So I’d definitely check it out. Also, if you ever want to transition to C# you’ll find that the decorators are almost identical to what you’d find in .NET Core.