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.
1 parent 5b70c18 commit 52f2d85Copy full SHA for 52f2d85
lib/index.js
@@ -137,7 +137,10 @@ function one(state, node) {
137
if (state.file && state.location) {
138
const doc = String(state.file)
139
const loc = location(doc)
140
- result.position = {start: loc.toPoint(0), end: loc.toPoint(doc.length)}
+ const start = loc.toPoint(0)
141
+ const end = loc.toPoint(doc.length)
142
+ // @ts-expect-error: always defined as we give valid input.
143
+ result.position = {start, end}
144
}
145
146
return result
0 commit comments