@domorium/validator 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +17 -0
- package/dist/document/gedcomDocument.d.ts +8 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +263 -241
- package/dist/validator/validate.d.ts +5 -1
- package/dist/validator/versionRegistry.d.ts +2 -0
- package/package.json +1 -1
|
@@ -6,7 +6,11 @@ export declare function schemeFor(nodes: ASTNode[]): GedcomScheme;
|
|
|
6
6
|
export declare class GedcomValidator {
|
|
7
7
|
private readonly pointers;
|
|
8
8
|
private readonly extensions;
|
|
9
|
-
|
|
9
|
+
/** A fragment is not a document, so nothing is required of its root. */
|
|
10
|
+
private readonly fragment;
|
|
11
|
+
constructor(pointers?: Map<string, ASTNode[]>, extensions?: ExtensionContext,
|
|
12
|
+
/** A fragment is not a document, so nothing is required of its root. */
|
|
13
|
+
fragment?: boolean);
|
|
10
14
|
setScheme(nodes: ASTNode[]): GedcomScheme;
|
|
11
15
|
validate(nodes: ASTNode[], parentType?: GedcomType, _scheme?: GedcomScheme): GedcomError[];
|
|
12
16
|
}
|
|
@@ -24,5 +24,7 @@ export type VersionResolution = ({
|
|
|
24
24
|
kind: "undetermined";
|
|
25
25
|
range: Range;
|
|
26
26
|
} & SchemaChoice);
|
|
27
|
+
/** The schema a caller names outright, for text that carries no header. */
|
|
28
|
+
export declare function schemaForDialect(dialect: GedcomDialect): SchemaChoice;
|
|
27
29
|
export declare function resolveGedcomVersion(nodes: ASTNode[]): VersionResolution;
|
|
28
30
|
export {};
|