read-gedcom
Version:
Gedcom file reader
17 lines (16 loc) • 779 B
TypeScript
import { ValueDate } from './dates';
import { ValueExactDate } from './ValueExactDate';
/**
* Parses a Gedcom date. These dates can take many different forms, see {@link ValueDate}.
* The dates are checked for validity with respect to their calendar, except for the Hebrew calendar which will assume all dates to be valid due to a missing implementation.
* Any unsuccessful parsing or invalid date(s) will result in <code>null</code>.
* @param value The value to parse
* @category Value parsers
*/
export declare const parseDate: (value: string | null) => ValueDate | null;
/**
* Parses a date of format day-month-year.
* @param value The value to parse
* @category Value parsers
*/
export declare const parseExactDate: (value: string | null) => ValueExactDate | null;