属性 'render' 的类型不兼容

Types of property 'render' are incompatible

我正在使用 ReactQuill 作为一个组件,但是我在使用 Typescript 时遇到了这个错误。任何缓解建议

JSX element type 'ReactQuill' is not a constructor function for JSX elements. Types of property 'render' are incompatible. Type '() => ReactNode' is not assignable to type '{ (): false | Element | null; (): ReactNode; }'. Type 'ReactNode' is not assignable to type 'false | Element | null'. Type 'undefined' is not assignable to type 'false | Element | null'.`

Issue on Typescript Github

您一定是在某处将类型指定为 () => ReactNode,请将其更改为 Element