File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * @typedef {import('unist').Node } Node
3
2
* @typedef {import('unist').Position } Position
3
+ * @typedef {import('unist').Node } Node
4
4
* @typedef {import('vfile').VFile } VFile
5
5
* @typedef {import('vfile').VFileValue } VFileValue
6
6
*/
@@ -48,12 +48,10 @@ export function source(value, file) {
48
48
return null
49
49
}
50
50
51
- // @ts -expect-error: To do: add `PointLike` to `vfile-location`
52
51
const endOffset = loc . toOffset ( position . end )
53
- // @ts -expect-error: To do: add `PointLike` to `vfile-location`
54
52
let startOffset = loc . toOffset ( position . start )
55
53
56
- if ( endOffset === - 1 || startOffset === - 1 ) {
54
+ if ( endOffset === undefined || startOffset === undefined ) {
57
55
return null
58
56
}
59
57
Original file line number Diff line number Diff line change 33
33
],
34
34
"dependencies" : {
35
35
"@types/unist" : " ^2.0.0" ,
36
- "vfile" : " ^5 .0.0" ,
37
- "vfile-location" : " ^4 .0.0"
36
+ "vfile" : " ^6 .0.0" ,
37
+ "vfile-location" : " ^5 .0.0"
38
38
},
39
39
"devDependencies" : {
40
40
"@types/node" : " ^20.0.0" ,
You can’t perform that action at this time.
0 commit comments