feat(recursive-list): rename children prop to nodes for Svelte 5 compatibility

This commit is contained in:
Eric Liu 2024-10-20 15:05:43 -07:00
commit 242e2fcbdf
5 changed files with 19 additions and 19 deletions

View file

@ -11,10 +11,10 @@ type $RestProps = SvelteHTMLElements["ul"] & SvelteHTMLElements["ol"];
type $Props = {
/**
* Specify the children to render
* Specify the nodes to render
* @default []
*/
children?: Array<RecursiveListNode & { children?: RecursiveListNode[] }>;
nodes?: Array<RecursiveListNode & { nodes?: RecursiveListNode[] }>;
/**
* Specify the type of list to render