Typescript error for <Handle> prop
See original GitHub issueI’m using <Handle> within a custom node component and I get the following Typescript error:
TS2322: Type '"top"' is not assignable to type 'Position'.
Using 1.3.5
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
React component throwing TypeScript error for function ...
The first param to Component type is props type , and you have not defined it, therefore the error. Define a interface,
Read more >Error Boundaries - React TypeScript Cheatsheets
React-error-boundary - is a lightweight package ready to use for this scenario with TS support built-in. This approach also lets you avoid class...
Read more >Typescript component does not throw error if different prop ...
I am in the process of migrating my React project to typescript. I've managed to convert a smaller component and it's working as...
Read more >Handle Props in React in TypeScript
Handle Props in React in TypeScript. In this article, I will describe some issues you may encounter making illegal props unrepresentable in React....
Read more >Deciphering TypeScript's React errors | by Fiona Hopkins |
The combination of TypeScript and React can lead to some hairy error messages when you get one of your props wrong. This guide...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hey,
we didn’t exported all types. You should now be able to import the Position enum:
This should work with v.1.3.7
Hey