Replies: 2 comments
-
|
Hi, this can be done with a decorator macro that's applied to the entire class, and then going through each method and checking if there is a And here is the code with type annotations cause I had to cut those out. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys!
Thank you for this lib, you cannot imagine my face once I discovered raw ts macro where evaluated at runtime!
I'm in need for something I cannot find how to achieve.
Lets consider the following class:
What I want to do, is to be able to write something like that:
Theoretically, it should be transformed at build time like this:
I tried a lot of things, but I'm not used to the typescript API, and I couldn't find how to impact the constructor as intended.
So far, my custom macro looks like:
Beta Was this translation helpful? Give feedback.
All reactions