-
This is related to the prior discussion. Please check the example repo https://github.com/205g0/mdast-example and there You should see in your editor following contextual error in [tsserver 2345] [E] Argument of type '(node: Heading) => void' is not assignable to parameter of type '(value: Node, index: number, array: Node[]) => void'. Types of parameters 'node' and 'value' are incompatible. Type 'Node' is missing the following properties from type 'Heading': depth, children If you remove
Remove this and the error goes away. Not sure if this is intended and I misunderstood something. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 19 replies
-
But |
Beta Was this translation helpful? Give feedback.
-
Yes, you are right, I just realized once I hit submit. Then how do I properly type this |
Beta Was this translation helpful? Give feedback.
Yes, you are right, I just realized once I hit submit. Then how do I properly type this
node
?