From b1e2c8fd5cb5dfa46bc440a12eafaf56cd844b1c Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Mon, 24 Nov 2025 20:54:57 +0100 Subject: Docs --- node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts (limited to 'node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts') diff --git a/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts b/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts new file mode 100644 index 0000000..12727dc --- /dev/null +++ b/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts @@ -0,0 +1,28 @@ +import { ToJSContext } from '../../nodes/toJS.js'; +import { YAMLSeq } from '../../nodes/YAMLSeq.js'; +import { CreateNodeContext } from '../../util.js'; +import type { Schema } from '../Schema.js'; +import { CollectionTag } from '../types.js'; +export declare class YAMLOMap extends YAMLSeq { + static tag: string; + constructor(); + add: (pair: import("../../index.js").Pair | { + key: any; + value: any; + }, overwrite?: boolean | undefined) => void; + delete: (key: unknown) => boolean; + get: { + (key: unknown, keepScalar: true): import("../../index.js").Scalar | undefined; + (key: unknown, keepScalar?: false | undefined): any; + (key: unknown, keepScalar?: boolean | undefined): any; + }; + has: (key: unknown) => boolean; + set: (key: any, value: any) => void; + /** + * If `ctx` is given, the return type is actually `Map`, + * but TypeScript won't allow widening the signature of a child method. + */ + toJSON(_?: unknown, ctx?: ToJSContext): unknown[]; + static from(schema: Schema, iterable: unknown, ctx: CreateNodeContext): YAMLOMap; +} +export declare const omap: CollectionTag; -- cgit v1.2.3