Resolve a TsTypeRef
to the actual type
#6242
Unanswered
invakid404
asked this question in
Q&A
Replies: 1 comment 1 reply
-
No. It requires full TypeScript port |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there 👋🏻
I'm in the process of writing my first SWC plugin in Rust, and I'm wondering if there's a way to resolve a
TsTypeRef
(in particular, atype_param
of aCallExpr
) to the actual type declaration? I need to extract the fields and methods of the type and generate extra code based on them, but I can't seem to find a way to do it.Does SWC even keep track of types somewhere? If not, is there a better solution than trying to keep track of type declarations myself?
Beta Was this translation helpful? Give feedback.
All reactions