Skip to content

Commit 474ed7b

Browse files
committed
Refactor code-style
* Add more docs to JSDoc
1 parent 3b5aa32 commit 474ed7b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/index.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @typedef {import('unist').Point} Point
32
* @typedef {import('unist').Node} Node
3+
* @typedef {import('unist').Point} Point
44
* @typedef {import('unist').Position} Position
55
*/
66

@@ -20,11 +20,13 @@
2020
*/
2121

2222
/**
23-
* Stringify one point, a position (start and end points), or a node’s
24-
* positional information.
23+
* Serialize the positional info of a point, position (start and end points),
24+
* or node.
2525
*
2626
* @param {Node | NodeLike | Position | PositionLike | Point | PointLike | null | undefined} [value]
27+
* Node, position, or point.
2728
* @returns {string}
29+
* Positional info.
2830
*/
2931
export function stringifyPosition(value) {
3032
// Nothing.

0 commit comments

Comments
 (0)