YamlDiagnostic
YamlDiagnostic =
object
Defined in: packages/format-yaml/src/errors.ts:4
One parser diagnostic, with where in the source it applies.
Properties
Section titled “Properties”
readonlycode:string
Defined in: packages/format-yaml/src/errors.ts:6
The yaml error code, e.g. BAD_INDENT or MISSING_CHAR.
column?
Section titled “column?”
readonlyoptionalcolumn?:number
Defined in: packages/format-yaml/src/errors.ts:14
1-based column, absent under the same condition as line.
endOffset
Section titled “endOffset”
readonlyendOffset:number
Defined in: packages/format-yaml/src/errors.ts:10
readonlyoptionalline?:number
Defined in: packages/format-yaml/src/errors.ts:12
1-based line, absent when prettyErrors: false suppressed line counting.
message
Section titled “message”
readonlymessage:string
Defined in: packages/format-yaml/src/errors.ts:7
startOffset
Section titled “startOffset”
readonlystartOffset:number
Defined in: packages/format-yaml/src/errors.ts:9
Character offsets into the source the diagnostic covers.