Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/aether/deps.ts>YAML.Pair

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

Constructors

new
Pair(key: K, value?: V | null)

Type Parameters

optional
K = unknown
optional
V = unknown

Properties

key: K

Always Node or null when parsed, but can be set to anything.

optional
srcToken: CollectionItem

The CST token that was composed into this pair.

value: V | null

Always Node or null when parsed, but can be set to anything.

readonly
[NODE_TYPE]: symbol

Methods

clone(schema?: Schema): Pair<K, V>
toJSON(_?: unknown, ctx?: ToJSContext): ReturnType<addPairToJSMap>
toString(
ctx?: StringifyContext,
onComment?: () => void,
onChompKeep?: () => void,
): string