react-tech-tree
react-tech-tree copied to clipboard
Tree Element Has Wrong Props Type
It should be changed from NodeProps to TreeProps
yup you are right
declare function Node<T extends NodeProps>(props: T): JSX.Element;
- declare function Tree<T extends NodeProps>(props: T): JSX.Element;
+ declare function Tree<T extends TreeProps>(props: T): JSX.Element;
in the distributed index.d.ts, right? tbh, now is a good time as any to update that file. I should've written it in typescript in the first place 😅
Really wish this actually worked. Still isn't fixed.