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

x/aether/deps.ts>YAML.YAMLMap

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

Constructors

new
YAMLMap(schema?: Schema)

Type Parameters

optional
K = unknown
optional
V = unknown

Properties

items: Pair<K, V>[]

Methods

add(pair: Pair<K, V> | { key: K; value: V; }, overwrite?: boolean): void

Adds a value to the collection.

delete(key: unknown): boolean
get(key: unknown, keepScalar: true): Scalar<V> | undefined
get(key: unknown, keepScalar?: false): V | undefined
get(key: unknown, keepScalar?: boolean): V | Scalar<V> | undefined
has(key: unknown): boolean
set(key: K, value: V): void
toJSON<T = unknown>(
_?: unknown,
ctx?: ToJSContext,
Type?: { new (): T; },
): any
toString(
ctx?: StringifyContext,
onComment?: () => void,
onChompKeep?: () => void,
): string

Static Properties

readonly
tagName: "tag:yaml.org,2002:map"