read-gedcom
Version:
Gedcom file reader
12 lines (11 loc) • 720 B
TypeScript
import { TreeNodeRoot } from '../tree';
/**
* Computes an index for each node in the tree.
* This operation is idempotent: applying several times will not have further effects (but will cost resources as the whole tree will be traversed anyway).
* @param rootNode The root node
* @param noBackwardsReferencesIndex See {@link GedcomReadingOptions.noBackwardsReferencesIndex}
* @param doHideIndex See {@link GedcomReadingOptions.doHideIndex}
* @param progressCallback See {@link GedcomReadingOptions.progressCallback}
* @category Gedcom parser
*/
export declare const indexTree: (rootNode: TreeNodeRoot, noBackwardsReferencesIndex?: boolean, doHideIndex?: boolean, progressCallback?: (() => void) | null) => void;