lukasbach / react-complex-tree

Unopinionated Accessible Tree Component with Multi-Select and Drag-And-Drop
https://rct.lukasbach.com
MIT License
944 stars 74 forks source link

Missing `activeTreeId` in `TreeEnvironmentRef<T,C>` type #277

Closed kamilkazmierczakMtab closed 1 year ago

kamilkazmierczakMtab commented 1 year ago

Describe the bug activeTreeId property is available in environment ref but not available for TS due to missing type in TreeEnvironmentRef<T,C>

To Reproduce Assign ref to UncontrolledTreeEnvironment and try to use activeTreeId

Expected behavior activeTreeId is correctly typed

lukasbach commented 1 year ago

Hey @kamilkazmierczakMtab, thanks for the report, should be fixed in the new version.