Initial commit

This commit is contained in:
UltraLionfr
2024-11-04 15:43:02 +01:00
parent a342d67dc8
commit 861d1797b0
7308 changed files with 558047 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { MAP, SCALAR, SEQ } from '../nodes/identity.js';
import type { Pair } from '../nodes/Pair.js';
import type { SchemaOptions, ToStringOptions } from '../options.js';
import type { CollectionTag, ScalarTag } from './types.js';
export declare class Schema {
compat: Array<CollectionTag | ScalarTag> | null;
knownTags: Record<string, CollectionTag | ScalarTag>;
name: string;
sortMapEntries: ((a: Pair, b: Pair) => number) | null;
tags: Array<CollectionTag | ScalarTag>;
toStringOptions: Readonly<ToStringOptions> | null;
readonly [MAP]: CollectionTag;
readonly [SCALAR]: ScalarTag;
readonly [SEQ]: CollectionTag;
constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }: SchemaOptions);
clone(): Schema;
}