UNPKG

parse-gedcom

Version:

a simple and readable gedcom parser

22 lines (21 loc) 551 B
import { Node, Parent } from "unist"; declare type Link = { source: string; target: string; value: string; }; declare type ForceData = { nodes: Node[]; links: Link[]; }; /** * Transforms a GEDCOM AST - likely produced using * `parse` - into a data structure suited for * a [D3 force directed graph](https://observablehq.com/@d3/force-directed-graph) * layout. * * @param root - Parsed GEDCOM content * @returns D3-friendly JSON */ export declare function toD3Force(root: Parent): ForceData; export {};