ParseOptions
import { ParseOptions } from "jsr:@ende/yaml";interface
interface ParseOptionsOptions for parse.
Properties
schema
schema?: SchemaTypeName of the schema to use.
Default: "default"
allowDuplicateKeys
allowDuplicateKeys?: booleanIf true, duplicate keys will overwrite previous values. Otherwise,
duplicate keys will throw a YamlSyntaxError.
Default: false
Methods
onWarning
onWarning?(error: YamlSyntaxError): voidIf defined, a function to call on warning messages taking a
YamlSyntaxError as its only argument.