How to upgrade Rehype plugins with new JSDoc based types? #63
-
It seems that new JSDoc based types for rehype plugins - as seen for example with rehype-raw and rehype-sanitize - is not compatible anymore with
How should we migrate those plugins to their new versions with a typescript codebase? Refs. cucumber/common#1680 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Perhaps with a |
Beta Was this translation helpful? Give feedback.
-
adding |
Beta Was this translation helpful? Give feedback.
Perhaps with a
@ts-expect-error
for now — the actual code should just work but the types depend on a new major of unified (which is already released but isn’t inreact-markdown
yet)