mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
Fix typescript error on test with better TreeView typing definition for nodesFlat
This commit is contained in:
parent
56ebbb4cbf
commit
f453af437a
3 changed files with 3 additions and 3 deletions
2
types/TreeView/TreeView.svelte.d.ts
vendored
2
types/TreeView/TreeView.svelte.d.ts
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue