@domorium/validator 1.2.0 → 1.3.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 +28 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +529 -436
- package/dist/validator/date-v7.d.ts +8 -0
- package/dist/validator/rule-node.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GedcomScheme } from "../schemes/schema-types";
|
|
2
|
+
export declare function isValidDateValue(value: string, scheme: GedcomScheme): boolean;
|
|
3
|
+
export declare function isValidDatePeriod(value: string, scheme: GedcomScheme): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* `DateExact` names no calendar and takes no epoch: it is day, month and year in
|
|
6
|
+
* the Gregorian calendar, and all three are required.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isValidDateExact(value: string, scheme: GedcomScheme): boolean;
|
|
@@ -14,6 +14,8 @@ export declare class RuleNode {
|
|
|
14
14
|
isList: boolean;
|
|
15
15
|
to: GedcomType | undefined;
|
|
16
16
|
};
|
|
17
|
+
private isGedcom7Payload;
|
|
18
|
+
private mayOmitPayload;
|
|
17
19
|
getAvailableValues(tagType: GedcomType): string[] | null;
|
|
18
20
|
/**
|
|
19
21
|
* CONT/CONC are universal line-continuation tags: they are deliberately
|