Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/js_yaml_port/js-yaml.d.ts>LoadOptions

This is a simple and crude port of JS-YAML for Deno.
Latest
interface LoadOptions
import { type LoadOptions } from "https://deno.land/x/js_yaml_port@3.14.0/js-yaml.d.ts";

Properties

optional
filename: string

string to be used as a file path in error/warning messages.

optional
schema: SchemaDefinition

specifies a schema to use.

optional
json: boolean

compatibility with JSON.parse behaviour.

Methods

optional
onWarning(this: null, e: YAMLException): void

function to call on warning messages.

optional
listener(
this: State,
eventType: EventType,
state: State,
): void

listener for parse events