UNPKG

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) 885 B
/** Variante numérique d’un fichier (`FILE`.`TRAN` en GEDCOM 7). */ export type ObjeFileTranslation = { sourceUri: string; form: string; }; /** Un fichier référencé sous `OBJE`.`FILE` (chemin, MIME, catégorie MEDI, variantes). */ export type ObjeFileEntry = { sourceUri: string; form?: string; medi?: string; mediPhrase?: string; title?: string; translations?: ObjeFileTranslation[]; }; /** Enregistrement `0 @O{n}@ OBJE` (un ou plusieurs fichiers + lignes niveau 1 non modélisées). */ export type ObjeRecord = { id: number; files: ObjeFileEntry[]; /** Lignes `1 …` hors `FILE` (RESN, REFN, NOTE, …) pour round-trip. */ preservedLevel1Lines?: string[]; }; /** URI principale d’un OBJE (préfère `https`, sinon premier `FILE`). */ export declare function primaryObjeFileUri(record: ObjeRecord | undefined): string | null;