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.
Node
1 parent 70206d1 commit 2bcc139Copy full SHA for 2bcc139
index.js
@@ -17,7 +17,7 @@ export const pointEnd = point('end')
17
/**
18
* Get the positional info of `node`.
19
*
20
- * @param {NodeLike} [node]
+ * @param {NodeLike|Node} [node]
21
* @returns {Position}
22
*/
23
export function position(node) {
@@ -35,12 +35,10 @@ function point(type) {
35
36
37
38
39
* @returns {Point}
40
41
function point(node) {
42
- /** @type {Point} */
43
- // @ts-expect-error looks like a point
44
const point = (node && node.position && node.position[type]) || {}
45
46
return {
0 commit comments