From fee8a7e105a80ac6dced96e9c6ed81a755bf2e9c Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Wed, 30 Mar 2022 14:45:00 -0400 Subject: [PATCH] Fix type emitted in declaration file This is required for TypeScript to avoid referencing the wrong type (see https://github.com/microsoft/TypeScript/issues/48242#issuecomment-1067348119). --- lib/react-markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/react-markdown.js b/lib/react-markdown.js index 6dbb085c..9291e7f3 100644 --- a/lib/react-markdown.js +++ b/lib/react-markdown.js @@ -12,7 +12,7 @@ * @typedef PluginOptions * @property {PluggableList} [remarkPlugins=[]] * @property {PluggableList} [rehypePlugins=[]] - * @property {import('remark-rehype').Options} [remarkRehypeOptions={}] + * @property {import('remark-rehype').Options | undefined} [remarkRehypeOptions={}] * * @typedef LayoutOptions * @property {string} [className]