gedcom-ts
Version:
TypeScript GEDCOM toolkit for browser apps: import .ged/.zip, edit typed genealogy data, and export GEDCOM or GEDZIP.
24 lines (23 loc) • 1.07 kB
TypeScript
import type { ObjeRecord } from "../commons/ObjeRecord";
import type { GedcomExportOptions } from "../export/GEDCOM";
/**
* Mutation in-place des {@link GedcomExportOptions} (export `.ged` / `.zip`).
*/
export declare class GedcomExportOptionsEdit {
private readonly target;
constructor(target: GedcomExportOptions);
get value(): GedcomExportOptions;
setExtraTopLevelRecords(lines: readonly string[] | null | undefined): this;
clearExtraTopLevelRecords(): this;
setObjeRecordsById(map: ReadonlyMap<number, ObjeRecord> | null | undefined): this;
clearObjeRecordsById(): this;
setHeadLanguageTag(tag: string | null | undefined): this;
setHeadCopyright(text: string | null | undefined): this;
setHeadDestination(dest: string | null | undefined): this;
setHeadSchemaTagDefs(defs: readonly {
readonly tag: string;
readonly uri: string;
}[] | null | undefined): this;
clearHeadSchemaTagDefs(): this;
}
export declare function editGedcomExportOptions(options: GedcomExportOptions): GedcomExportOptionsEdit;