How to upgrade Rehype plugins with new JSDoc based types? #63
Answered
by
wooorm
aurelien-reeves
asked this question in
Q&A
-
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.
Answered by
wooorm
Aug 3, 2021
Replies: 3 comments 9 replies
-
Perhaps with a |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
ChristianMurphy
-
adding |
Beta Was this translation helpful? Give feedback.
0 replies
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)