Нет описания

omap.d.ts 1004B

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