Incorrect type in unist-util-visit #56
-
Hi, I'm trying to use unist-util-visit in an effort to use remark-directive. The example provided works fine when you build whilst ignoring type errors, but the typescript compiler has found an index.d.ts file which contains this:
Which causes an issue because the typings found here: @types/unist state that Node is not generic:
My confusion is that that the index.d.ts file isn't present in the github repo and index.js seems to have the valid types mentioned in the jsdoc comments |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
My apologies - I was using @types/unist@2.0.3, and after installing version 2.0.6, Node is now generic! |
Beta Was this translation helpful? Give feedback.
My apologies - I was using @types/unist@2.0.3, and after installing version 2.0.6, Node is now generic!