UNPKG

gedcom-ts

Version:

TypeScript GEDCOM toolkit for browser apps: import .ged/.zip, edit typed genealogy data, and export GEDCOM or GEDZIP.

22 lines (21 loc) 970 B
export interface BookletDateConfig { readonly unknownDate: string; readonly onUnknown: string; readonly inYear: (year: string) => string; readonly beforeYear: (year: string) => string; readonly afterYear: (year: string) => string; readonly aboutYear: (year: string) => string; readonly onFullDate: (date: string) => string; readonly lifeRange: (from: string, to: string, fromIsYearOnly: boolean) => string; readonly seesDayInYear: (year: string) => string; readonly seesDayOnPhrase: (phrase: string) => string; readonly seesDayOnFullDate: (date: string) => string; } export interface BookletDateModule { readonly BOOKLET_UNKNOWN_DATE: string; isYearOnlyDate(dateLabel: string): boolean; onDate(dateLabel: string): string; lifeDateRange(from: string, to: string): string; seesDayOn(dateLabel: string): string; } export declare function createBookletDateModule(config: BookletDateConfig): BookletDateModule;