Skip to content

default

const default: object

Defined in: src/js-yaml-compat.ts:384

CORE_SCHEMA: Schema

Stub — see FAILSAFE_SCHEMA.

defineMappingTag: (tagName, _opts) => TagDefinition

Stub mirroring js-yaml v5’s defineMappingTag. Nothing reads the result yet.

string

Record<string, unknown> = {}

TagDefinition

defineScalarTag: (tagName, _opts) => TagDefinition

Stub mirroring js-yaml v5’s defineScalarTag. Nothing reads the result yet.

string

Record<string, unknown> = {}

TagDefinition

defineSequenceTag: (tagName, _opts) => TagDefinition

Stub mirroring js-yaml v5’s defineSequenceTag. Nothing reads the result yet.

string

Record<string, unknown> = {}

TagDefinition

dump: (obj, opts?) => string

Delegates to our stringify; dump options are validated and throw until honoured.

unknown

DumpOptions

string

FAILSAFE_SCHEMA: Schema

Stub so import { FAILSAFE_SCHEMA } still works. Our parser is fixed to YAML 1.2 core, so passing this as the schema option to load/dump throws (only the default CORE_SCHEMA is accepted).

JSON_SCHEMA: Schema

Stub — see FAILSAFE_SCHEMA.

load: (input, opts?) => unknown

Parse exactly one document; an empty stream or multiple documents throws.

string

LoadOptions

unknown

loadAll: (input, iteratorOrOpts?, opts?) => unknown[] | undefined

string

LoadOptions | ((doc) => void) | null

LoadOptions

unknown[] | undefined

Schema: typeof Schema

YAML11_SCHEMA: Schema

Stub. Does NOT turn on YAML 1.1 typing; passing it as the schema option throws, because we always parse as YAML 1.2 core. See FAILSAFE_SCHEMA.

YAMLException: typeof YAMLException