gedcom-ts
Version:
TypeScript GEDCOM toolkit for browser apps: import .ged/.zip, edit typed genealogy data, and export GEDCOM or GEDZIP.
19 lines (18 loc) • 637 B
TypeScript
import { Note, type TypeNote } from "../commons/Note";
/**
* API d’édition cohérente autour d’une {@link Note} existante (mutation in-place).
*/
export declare class NoteEdit {
private readonly target;
constructor(target: Note);
get value(): Note;
setType(type: TypeNote): this;
/** Remplace le texte de la note (y compris tableau vide). */
setLines(lines: readonly string[]): this;
appendLine(line: string): this;
clearLines(): this;
setIndis(ids: readonly number[]): this;
appendIndi(indi: number): this;
clearIndis(): this;
}
export declare function editNote(note: Note): NoteEdit;