Skip to content

YamlDiagnostic

YamlDiagnostic = object

Defined in: packages/format-yaml/src/errors.ts:4

One parser diagnostic, with where in the source it applies.

readonly code: string

Defined in: packages/format-yaml/src/errors.ts:6

The yaml error code, e.g. BAD_INDENT or MISSING_CHAR.


readonly optional column?: number

Defined in: packages/format-yaml/src/errors.ts:14

1-based column, absent under the same condition as line.


readonly endOffset: number

Defined in: packages/format-yaml/src/errors.ts:10


readonly optional line?: number

Defined in: packages/format-yaml/src/errors.ts:12

1-based line, absent when prettyErrors: false suppressed line counting.


readonly message: string

Defined in: packages/format-yaml/src/errors.ts:7


readonly startOffset: number

Defined in: packages/format-yaml/src/errors.ts:9

Character offsets into the source the diagnostic covers.