1

我在我的反应项目中使用打字稿,但是当我使用这个代码片段时,我得到一个错误

<ReactMarkdown rehypePlugins={[rehypeRaw]}>
   {content}
</ReactMarkdown>





Type '(options?: void | Options | undefined) => void | Transformer<Root, Root>' is not assignable to type 'Pluggable<any[], Settings>'.
  Type '(options?: void | Options | undefined) => void | Transformer<Root, Root>' is not assignable to type 'Plugin<any[], Settings>'.
    Type 'void | Transformer<Root, Root>' is not assignable to type 'void | Transformer'.
      Type 'Transformer<Root, Root>' is not assignable to type 'void | Transformer'.
        Type 'Transformer<Root, Root>' is not assignable to type 'Transformer'.
          Types of parameters 'node' and 'node' are incompatible.

关于该类型错误的任何想法?

4

0 回答 0