gedcom-ts
Version:
TypeScript GEDCOM toolkit for browser apps: import .ged/.zip, edit typed genealogy data, and export GEDCOM or GEDZIP.
13 lines (12 loc) • 716 B
TypeScript
export type GedcomTransferPhase = "zip-extract" | "gedcom-parse" | "gedcom-build" | "zip-build" | "zip-finalize" | "done";
export interface GedcomTransferProgress {
readonly phase: GedcomTransferPhase;
/** 0–100 */
readonly percent: number;
readonly currentEntry?: string;
readonly entryIndex?: number;
readonly entryCount?: number;
}
export type GedcomTransferProgressCallback = (progress: GedcomTransferProgress) => void;
export declare function reportGedcomTransferProgress(onProgress: GedcomTransferProgressCallback | undefined, progress: GedcomTransferProgress): void;
export declare function mapLocalPercentToRange(localPercent: number, rangeStart: number, rangeEnd: number): number;