Interface: TextOffset
Defined in: cspell-types/dist/index.d.mts:4
Extended by
Properties
length?
optional
length:number
Defined in: cspell-types/dist/index.d.mts:17
Assumed to match text.length
if the text has not been transformed.
offset
offset:
number
Defined in: cspell-types/dist/index.d.mts:13
The offset into the document.
text
text:
string
Defined in: cspell-types/dist/index.d.mts:9
The text found at the offset. If the text has been transformed, then the length might not match length
.
Example: Original: cafe\u0301
, text: café