We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
computeTreeLeafDepth
1 parent 2989753 commit cbe7d93Copy full SHA for cbe7d93
src/TreeView/TreeViewNode.svelte
@@ -1,8 +1,7 @@
1
<script context="module">
2
/**
3
* Computes the depth of a tree leaf node relative to <ul role="tree" />
4
- * @param {HTMLLIElement} node
5
- * @returns {number} depth
+ * @type {(node: HTMLLIElement) => number}
6
*/
7
export function computeTreeLeafDepth(node) {
8
let depth = 0;
types/TreeView/TreeViewNode.svelte.d.ts
@@ -3,7 +3,7 @@ import type { SvelteComponentTyped } from "svelte";
-export declare function computeTreeLeafDepth(): any;
+export declare function computeTreeLeafDepth(node: HTMLLIElement): number;
export type TreeNodeId = string | number;
9
export type TreeViewNodeProps = {
0 commit comments