We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a10182a commit b9b6cc5Copy full SHA for b9b6cc5
index.js
@@ -1,7 +1,7 @@
1
var own = {}.hasOwnProperty
2
3
/**
4
- * @typedef {import('unist').Node} Node
+ * @typedef {Record<string, unknown> & {type: string, position?: Position|undefined}} NodeLike
5
* @typedef {import('unist').Position} Position
6
* @typedef {import('unist').Point} Point
7
*/
@@ -10,7 +10,7 @@ var own = {}.hasOwnProperty
10
* Stringify one point, a position (start and end points), or a node’s
11
* positional information.
12
*
13
- * @param {Node|Position|Point} [value]
+ * @param {NodeLike|Position|Point} [value]
14
* @returns {string}
15
16
export function stringifyPosition(value) {
0 commit comments