How to set "paramtypes" metadata in Javascript?
I'm currently working on NodeJs/Javascript setup (no typescript) that relies on decorators. Unfortunately I'm not able to convince swc to emit correct metadata. Here's an example
Compiling it with the following
.swcrc
gives me
Does anybody know how to get swc
to emit correct design:paramtypes
metadata in a JS setup?7 Replies
Solution
You can’t
Decorator metadata is for typescript
I can't do it now 😉 How about leveraging JsDoc here to enable metadata output from Js source?
I’m against it unless official tsc does it
Fair enough. Would you be open to accept PRs for a feature like this?
Yeap, but only if tsc do the same
Well, ok. I guess they won't... nevermind, thanks for your quick reply!