Schema.d.ts 819 B

123456789101112131415161718
  1. import { MAP, SCALAR, SEQ } from '../nodes/identity.js';
  2. import type { Pair } from '../nodes/Pair.js';
  3. import type { SchemaOptions, ToStringOptions } from '../options.js';
  4. import type { CollectionTag, ScalarTag } from './types.js';
  5. export declare class Schema {
  6. compat: Array<CollectionTag | ScalarTag> | null;
  7. knownTags: Record<string, CollectionTag | ScalarTag>;
  8. merge: boolean;
  9. name: string;
  10. sortMapEntries: ((a: Pair, b: Pair) => number) | null;
  11. tags: Array<CollectionTag | ScalarTag>;
  12. toStringOptions: Readonly<ToStringOptions> | null;
  13. readonly [MAP]: CollectionTag;
  14. readonly [SCALAR]: ScalarTag;
  15. readonly [SEQ]: CollectionTag;
  16. constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }: SchemaOptions);
  17. clone(): Schema;
  18. }