This makes it hard to wrap the Markdown component because every type becomes an any. For example:
import MarkdownToJsx from 'markdown-to-jsx';
type MyMarkdownProps =
HTMLProps<HTMLDivElement> &
Pick<ComponentPropsWithoutRef<typeof MarkdownToJsx>, 'children' | 'options'>
type Children = MyMarkdownProps['children'] // any, not string
type Children = MyMarkdownProps['options'] // any, not Partial<...>
The library declares
This makes it hard to wrap the
Markdown
component because every type becomes anany
. For example: