tsoa icon indicating copy to clipboard operation
tsoa copied to clipboard

Are tsoa decorators a build-time only feature?

Open trusktr opened this issue 4 months ago • 1 comments

From looking at the source, I see decorators simply return () => {}, which I think implies that they are used only during a compile step (no runtime implementation).

Do you have any thoughts on the new decorator format, in particular the problems and solution I described here?:

discrepancy: we're allowed to get/set private fields, but not public fields, and public auto accessors are not fields.

I'm trying to get all the feedback I can there. It seems not enough people who actually use decorators are involved in the iscussions there.

Maybe decorators for your case are only significant as compiler annotations, which would still be interesting to hear about. If you do have runtime use cases, that would be great to learn about too.

trusktr avatar Oct 17 '24 19:10 trusktr