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

x/windmill/node_modules/yaml/dist/nodes/Pair.d.ts>Pair

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
class Pair
import { Pair } from "https://deno.land/x/windmill@v1.346.2/node_modules/yaml/dist/nodes/Pair.d.ts";

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(
onComment?: () => void,
onChompKeep?: () => void,
): string