Skip to content

Exposes NodeComponentProps #82

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Exposes NodeComponentProps #82

wants to merge 1 commit into from

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

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

Successfully merging this pull request may close these issues.

2 participants