gedcom-ts
Version:
A TypeScript library to create genealogy tree data model and to import/export data in a GEDCOM file (.ged).
43 lines (42 loc) • 1.29 kB
TypeScript
import { Separators } from '../commons/Separators';
import { People } from '../commons/People';
import { Act } from '../commons/Act';
import { Identificator } from '../commons/Identificator.enum';
export declare class ExportFormatFile {
title: string;
extension: string;
constructor(title: string);
export(data: any): void;
}
export declare class GEDCOM extends ExportFormatFile {
peoples: Array<People>;
constructor(title: string, peoples: Array<People>);
get beginGedcom(): string;
get contentGedcom(): string;
download(): void;
}
export declare class LineGedcom {
cr: Separators;
}
export declare class PeopleLine extends LineGedcom {
sosa: number;
fams?: number[];
famc?: number;
firstnames: Array<string>;
lastnames: string;
constructor(sosa: number, firstnames: Array<string>, lastnames: string, fams: number[], famc: number);
get indi(): string;
get famsLine(): string;
get famcLine(): string | null;
get firstnamesAndNames(): string;
get sex(): string;
}
export declare class ActLine extends LineGedcom {
type: Identificator;
act: Act;
constructor(type: Identificator, act: Act);
get typeLine(): string;
get dateLine(): string;
get placeLine(): string;
private formatDate;
}