Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface LoaderStateOptions
import { type LoaderStateOptions } from "https://deno.land/std@0.122.0/encoding/_yaml/loader/loader_state.ts";

Properties

optional
legacy: boolean
optional
listener: ((...args: Any[]) => void) | null
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?: YAMLError): void

function to call on warning messages.