Skip to content

TS error: domToReact(node.children) not working in v1.0.0+ #207

Closed
@allanmc

Description

@allanmc

Expected Behavior

Replace using domToReact(node.children) as shown in README should work in Typescript.

Actual Behavior

Argument of type 'Node[]' is not assignable to parameter of type 'DOMNode[]'.
  Type 'Node' is not assignable to type 'DOMNode'.
    Type 'Node' is missing the following properties from type 'Text': data, nodeValuets(2345)

Reproducible Demo

https://codesandbox.io/s/little-dew-h4l9h?file=/src/App.tsx

Environment

  • Version: 1.0.0+

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions