You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and that actually seems to get through macro processing but it produces "{}" for all of the type strings.
Maybe I am just missing how this should be done? If so, guidance would be welcome. Thanks!
Additional context
Currently running ts-macros 2.5.0, ts-patch 3.0.2
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Suppose I make a macro:
Then indeed the following code
generates
as desired (ignore for the moment that it then generates a TypeScript error since the type of foo has no
reflectedType
property).But what If I would like to create a different macro so that I could abbreviate the last three lines with say:
and generate the exact same code?
Describe the solution you'd like
I'd like there to be a way to cycle through an array of literals, accessing the type of each in turn.
Describe alternatives you've considered
I tried
but that fails with
even though it certainly looks like I gave it one type parameter. I also tried the more baroque
and that actually seems to get through macro processing but it produces
"{}"
for all of the type strings.Maybe I am just missing how this should be done? If so, guidance would be welcome. Thanks!
Additional context
Currently running ts-macros 2.5.0, ts-patch 3.0.2
The text was updated successfully, but these errors were encountered: