react-vtree
react-vtree copied to clipboard
Exposes NodeComponentProps
This type needs to be exposed in order to properly type custom node components, see issue #81
also as a work-around, I believe this is the equivalent type for anyone wondering
import { ListChildComponentProps } from 'react-window';
import { NodePublicState } from 'react-vtree/dist/es/Tree';
type ITreeWalkerData = {
// This is your data model
}
type TreeNodeComponentProps = ListChildComponentProps<ITreeWalkerData> & NodePublicState<ITreeWalkerData>;