react-component/tree

missing DataNode type

jonlepage opened this issue · 1 comments

you forget export DataNode type !
image

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

image


edit:
It look missing expose a lot of types, why not export all types ?.
#548

Works for me React 18.2 and Typescript 4.8

import { DataNode, EventDataNode, Key } from "rc-tree/lib/interface";