Closed abrman closed 1 year ago
I think the reason is that the NodeModel
declared on line 14 is no longer generics.
If you write the following, you should get the intended type.
type NodeModel = import("@minoru/react-dnd-treeview").NodeModel<{ test: boolean }>;
I wasn't aware of that! Thank you!
Describe the bug NodeModel's passed type argument doesn't evaluate correctly
To Reproduce Create a
.d.ts
file and set its' content to beExpected behavior CustomNode should have a type declaration other than
any
Screenshots![image](https://user-images.githubusercontent.com/6663260/206325356-d03c00aa-f2bc-4a58-a33e-aef90f3e7ca0.png)