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

x/aether/deps.ts>YAML.YAMLSet

A Deno library to interface with the Discord API
Latest
class YAML.YAMLSet
extends YAMLMap<T, Scalar<null> | null>
import { YAML } from "https://deno.land/x/aether@v0.0.3/deps.ts";
const { YAMLSet } = YAML;

Constructors

new
YAMLSet(schema?: Schema)

Type Parameters

optional
T = unknown

Methods

add(key: T | Pair<T, Scalar<null> | null> | { key: T; value: Scalar<null> | null; }): void
get(key: unknown, keepPair?: boolean): any

If keepPair is true, returns the Pair matching key. Otherwise, returns the value of that Pair's key.

set(key: T, value: boolean): void
deprecated
set(key: T, value: null): void
toJSON(_?: unknown, ctx?: ToJSContext): any
toString(
ctx?: StringifyContext,
onComment?: () => void,
onChompKeep?: () => void,
): string