You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I tried changing an existing data type in my project to extend TreeNode. However, since the ID is assumed to be a string, typescript complains.
Describe the solution you'd like
Change the TreeNode interface to be generic
exportinterfaceTreeNode<T>{id: T,// ...}
Describe alternatives you've considered
N/A
Screenshots or screen records
N/A
Additional context
N/A
Would you like to work on this feature?
Absolutely!
The text was updated successfully, but these errors were encountered:
Thanks for your feature request and your interest in contributing to the project!
For IDs, I'd suggest using string | number types instead of a more generic template type. These are the most common and practical types for IDs. If you have a specific use case that requires other types, please let me know so we can consider any potential challenges.
Is your feature request related to a problem? Please describe.
I tried changing an existing data type in my project to extend
TreeNode
. However, since the ID is assumed to be a string, typescript complains.Describe the solution you'd like
Change the TreeNode interface to be generic
Describe alternatives you've considered
N/A
Screenshots or screen records
N/A
Additional context
N/A
Would you like to work on this feature?
Absolutely!
The text was updated successfully, but these errors were encountered: