Replies: 1 comment
-
|
Hi, sorry for the late response, it seems like ts-macros isn't able to get the type resolved by |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to make a 0 runtime serializer/deserializer with ts-macros, but I am running into several problems.
here's a example usage
will be transformed into:
executed result:
here are two problems I ran into:
I have to create these types before-hand like
$offset!<Extern, Flatten<Extern>>instead of let ts infer what passed in.I tried create new types inside of macros, and they don't work.
I also tried to use type resolver but can't get it to work.
and with current implementation I have to use same identifier for the offset calculation.
for example
this will not work.
reprod: https://github.com/arily/serialize
Beta Was this translation helpful? Give feedback.
All reactions