Skip to main content

Interface: TextOffset

Defined in: cspell-types/dist/index.d.mts:29

Extended by

Properties

length?

optional length: number

Defined in: cspell-types/dist/index.d.mts:42

Assumed to match text.length if the text has not been transformed.


offset

offset: number

Defined in: cspell-types/dist/index.d.mts:38

The offset into the document.


text

text: string

Defined in: cspell-types/dist/index.d.mts:34

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é