Skip to content

Conversation

jdmg94
Copy link

@jdmg94 jdmg94 commented Oct 8, 2021

This type needs to be exposed in order to properly type custom node components, see issue #81

This type needs to be exposed in order to properly type custom node components
@gregjoeval
Copy link

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>;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants