ParseOptions

import { ParseOptions } from "jsr:@ende/yaml";

interface

interface ParseOptions

Options for parse.

Properties

schema

schema?: SchemaType

Name of the schema to use.

Default: "default"

allowDuplicateKeys

allowDuplicateKeys?: boolean

If true, duplicate keys will overwrite previous values. Otherwise, duplicate keys will throw a YamlSyntaxError.

Default: false

Methods

onWarning

onWarning?(error: YamlSyntaxError): void

If defined, a function to call on warning messages taking a YamlSyntaxError as its only argument.

Source