summaryrefslogtreecommitdiff
path: root/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts
blob: 4d71bc4dc1f883048d01a15dfcb10e897aa4cd12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { YAMLSeq } from '../../nodes/YAMLSeq.js';
import { ToJSContext } from '../../nodes/toJS.js';
import { CollectionTag } from '../types.js';
export declare class YAMLOMap extends YAMLSeq {
    static tag: string;
    constructor();
    add: (pair: import("../../index.js").Pair<any, any> | {
        key: any;
        value: any;
    }, overwrite?: boolean | undefined) => void;
    delete: (key: any) => boolean;
    get: (key: any, keepScalar?: boolean | undefined) => unknown;
    has: (key: any) => boolean;
    set: (key: any, value: any) => void;
    /**
     * If `ctx` is given, the return type is actually `Map<unknown, unknown>`,
     * but TypeScript won't allow widening the signature of a child method.
     */
    toJSON(_?: unknown, ctx?: ToJSContext): unknown[];
}
export declare const omap: CollectionTag;