-
-
Notifications
You must be signed in to change notification settings - Fork 140
TS error: domToReact(node.children) not working in v1.0.0+Β #207
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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+
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working