gedcom-ts
Version:
TypeScript GEDCOM toolkit for browser apps: import .ged/.zip, edit typed genealogy data, and export GEDCOM or GEDZIP.
17 lines (16 loc) • 886 B
TypeScript
export interface ParsedPlace {
readonly city: string | null;
readonly country: string | null;
readonly raw: string;
}
export declare function parsePlaceLabel(label: string): ParsedPlace | null;
export declare function placeCore(label: string): string;
export declare function afterDateLocation(dateLabel: string, placeLabel: string): string;
export declare function atLocation(placeLabel: string): string;
export declare function birthDeathLocationPhrases(birthDate: string, birthPlace: string, deathDate: string, deathPlace: string): {
readonly birth: string;
readonly death: string;
};
export declare function lifeRangeLocation(birthPlace: string, deathPlace: string): string;
export declare function marriageWhenWhere(dateLabel: string, placeLabel: string): string | null;
export declare function embedMarriageWhenWhere(label: string | null | undefined): string;