Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/aether/deps.ts>YAML.CollectionTag

A Deno library to interface with the Discord API
Latest
interface YAML.CollectionTag
implements TagBase
import { type YAML } from "https://deno.land/x/aether@v0.0.3/deps.ts";
const { CollectionTag } = YAML;

Properties

optional
stringify: never
optional
test: never
collection: "map" | "seq"

The source collection type supported by this tag.

optional
nodeClass: new () => Node

The Node child class that implements this tag. If set, used to select this tag when stringifying.

Methods

resolve(
value: YAMLMap.Parsed | YAMLSeq.Parsed,
onError: (message: string) => void,
options: ParseOptions,
): unknown

Turns a value into an AST node. If returning a non-Node value, the output will be wrapped as a Scalar.