Replies: 1 comment 3 replies
-
Welcome @senicko! 👋 The best way to solve this would be to parsing, transforms, and compilation in one pipeline with Unified strongly encourages a plugin based approach to working with syntax trees. |
Beta Was this translation helpful? Give feedback.
3 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, I can't get the example from "How to narrow Nodes in TypeScript" to work in my code. I am traversing an AST and I need to check if node is a Literal of "yaml" type. I got stuck on the Literal check.
I started using unified and remark yesterday so I might be doing something totally wrong, but I can't figure out what.
I could just make a simple check like
if (node.type === "yaml" && "value" in node) {}
but I can't figure out why the recipe from unified site is not working.Beta Was this translation helpful? Give feedback.
All reactions