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) • 914 B
TypeScript
import { CoordinateGPS, Place } from "../commons/Place";
/**
* API d’édition cohérente autour d’un {@link Place} existant.
*/
export declare class PlaceEdit {
private readonly target;
constructor(target: Place);
get value(): Place;
setFromGedcom7Payload(payload: string): this;
setCity(city: string | null): this;
setCounty(county: string | null): this;
setState(state: string | null): this;
setCountry(country: string | null): this;
setPlacPhrase(phrase: string | null): this;
appendPlacPhrase(fragment: string): this;
clearPlacPhrase(): this;
setCoordinates(latitude: number, longitude: number): this;
clearCoordinates(): this;
/** Remplace le bloc coordonnées (ex. nouveau `CoordinateGPS`). */
replaceCoordinateModel(coordinate: CoordinateGPS): this;
clearStructured(): this;
}
export declare function editPlace(place: Place): PlaceEdit;