UNPKG

gedcom-ts

Version:

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

38 lines (37 loc) 1.25 kB
import { DateAct, type Day, type Month, type TypeDateActSimpleQualifier } from "../commons/DateAct"; /** * API d’édition cohérente autour d’un {@link DateAct} existant (mutation in-place). */ export declare class DateActEdit { private readonly target; constructor(target: DateAct); get value(): DateAct; clear(): this; /** Parse GEDCOM `DATE` / `SDATE` (même règles que `new DateAct(line)`). */ applyGedcomPayload(line: string): this; setExactDate(year?: number, month?: Month, day?: Day): this; setQualified(typeDateAct: TypeDateActSimpleQualifier, year?: number, month?: Month, day?: Day): this; setBetween(start: { year: number; month?: Month; day?: Day; }, end: { year: number; month?: Month; day?: Day; }): this; setFromTo(start: { year: number; month?: Month; day?: Day; }, end: { year: number; month?: Month; day?: Day; }): this; setTime(value: string | null): this; setDatePhrase(value: string | null): this; appendDatePhrase(fragment: string): this; setVerbatimPayload(value: string | null): this; } export declare function editDateAct(date: DateAct): DateActEdit;