Skip to content
greek conversion

CharacterScopeDiagnostic

Defined in: src/converter.ts:164 (opens in a new tab)

One recognized character excluded or lacking a defined preset mapping.

character: string

Defined in: src/converter.ts:183 (opens in a new tab)

Built-in letter name or user-defined character identifier.


code: CharacterScopeDiagnosticCode

Defined in: src/converter.ts:166 (opens in a new tab)

Stable category suitable for programmatic handling.


index: number

Defined in: src/converter.ts:173 (opens in a new tab)

Zero-based token index in the source document as the conversion prepared it, the document that losses and spans index as well: a custom form preserved as several literals is reported at the first of them, and spans[index] is where the character was read.


length: number

Defined in: src/converter.ts:181 (opens in a new tab)

Length of that spelling in the input, in UTF-16 code units.


message: string

Defined in: src/converter.ts:185 (opens in a new tab)

Human-readable English explanation.


offset: number

Defined in: src/converter.ts:179 (opens in a new tab)

Offset, in UTF-16 code units, of the character in the input as supplied: the spelling the converter recognized (an alias, a custom form, or the built-in spelling).