tree
tree copied to clipboard
missing DataNode type
you forget export DataNode type !

without exposing this type, we get error with only BasicDataNode, because it missing key.

edit: It look missing expose a lot of types, why not export all types ?. https://github.com/react-component/tree/issues/548
Works for me React 18.2 and Typescript 4.8
import { DataNode, EventDataNode, Key } from "rc-tree/lib/interface";