Fix typescript error on test with better TreeView typing definition for nodesFlat

This commit is contained in:
Bram 2024-11-28 21:34:10 +01:00
commit f453af437a
3 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ type $Props = {
* Provide a flat array of nodes to render
* @default []
*/
nodesFlat?: Array<TreeNode>;
nodesFlat?: Array<TreeNode & { pid?: any }>;
/**
* Set the current active node id