tree icon indicating copy to clipboard operation
tree copied to clipboard

missing DataNode type

Open jonlepage opened this issue 3 years ago • 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 ?. https://github.com/react-component/tree/issues/548

jonlepage avatar Apr 17 '22 11:04 jonlepage

Works for me React 18.2 and Typescript 4.8

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

AHorak avatar Dec 21 '22 12:12 AHorak