DEV Community

Discussion on: “Communicating your needs” / TypeScript’s value from a Buddhist perspective (part 1)

Collapse
 
cubiclebuddha profile image
Cubicle Buddha

Yea! That’s a great library! :) Have you tried tsoa yet for getting runtime checks at the front door of your APIs?

Collapse
 
kelerchian profile image
Alan

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?

Thread Thread
 
cubiclebuddha profile image
Cubicle Buddha

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.