ConverterConversionResult
Defined in: src/converter.ts:211 (opens in a new tab)
Detailed conversion result with character diagnostics kept separate.
Extends
Section titled “Extends”Properties
Section titled “Properties”diagnostics
Section titled “diagnostics”diagnostics: readonly
CharacterScopeDiagnostic[]
Defined in: src/converter.ts:213 (opens in a new tab)
Non-lossy repertoire and preset-mapping diagnostics from the source.
losses
Section titled “losses”losses: readonly
ConversionLoss[]
Defined in: src/converter.ts:215 (opens in a new tab)
Information losses inherited from the ordinary conversion contract.
Overrides
Section titled “Overrides”lossy:
boolean
Defined in: src/losses.ts:95 (opens in a new tab)
Whether at least one source distinction was lost.
Inherited from
Section titled “Inherited from”output
Section titled “output”output:
string
Defined in: src/losses.ts:93 (opens in a new tab)
Rendered target text.
Inherited from
Section titled “Inherited from”spans: readonly
ConversionSpan[]
Defined in: src/converter.ts:224 (opens in a new tab)
One span per token of the prepared source document (the parsed input,
with out-of-scope characters preserved as literals, except the letters
of a decimal numeral), as in
convertDetailed(): positions are in the input as supplied, before the
converter’s own spellings are substituted, and in the output as
returned, after the custom forms are written.