Skip to content
greek conversion

validateDocument

validateDocument(document): readonly ValidationDiagnostic[]

Defined in: src/validation.ts:81 (opens in a new tab)

Reports invalid document structure and Greek marks without mutation.

Parsed documents are normally valid. This helper is primarily intended for documents constructed or modified through the advanced ./document API. It does not validate the syntax of the source string: parsers can preserve unrecognized or malformed source sequences as literal tokens.

Document

readonly ValidationDiagnostic[]