Skip to main content

Interface: TextDocument

Defined in: Parser/types.ts:57

Interface used to pass documents to the parser.

Since​

10.5.0

Extended by​

Properties​

text​

readonly text: string

Defined in: Parser/types.ts:68

the raw Document Text


url​

readonly url: string | URL

Defined in: Parser/types.ts:63

The associated URL for this document. Most documents have the file: protocol, indicating that they represent files on disk. However, some documents may have other protocols indicating that they are not available on disk.