Skip to content

Commit 5ffdfa1

Browse files
committed
refactor: move JSDoc comment for getItems function
1 parent 8a4b318 commit 5ffdfa1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import { computed, isReactive, reactive } from "vue";
33

44
export type unObject = Record<string, unknown>;
55

6-
/**
7-
* Creates an array of node objects with parent and siblings
8-
*
9-
* @param {unObject[]} siblings - Array of sibling nodes
10-
* @param {unObject} [parent] - Parent node
11-
* @returns {{ node: unObject; parent: unObject; siblings: unObject }[]} Array
12-
* of objects containing node, parent, and siblings
13-
*/
146
const configurable = true,
7+
/**
8+
* Creates an array of node objects with parent and siblings
9+
*
10+
* @param {unObject[]} siblings - Array of sibling nodes
11+
* @param {unObject} [parent] - Parent node
12+
* @returns {{ node: unObject; parent: unObject; siblings: unObject }[]}
13+
* Array of objects containing node, parent, and siblings
14+
*/
1515
getItems = (siblings: unObject[], parent?: unObject) =>
1616
[...siblings].reverse().map((node) => ({ node, parent, siblings }));
1717

0 commit comments

Comments
 (0)