UNPKG

checksync

Version:

A tool that allows code to be annotated across different files to ensure they remain in sync.

19 lines (18 loc) 731 B
import { Marker } from "./types"; type TargetDetails = { line: number; checksum: string; }; /** * Get the line number and checksum of target referencing a given alias. * * Given a target marker and a list of aliases, return the line number and * checksum of the first target that points to one of the given aliases. * * @param targetMarker The marker to search for targets in. * @param aliases The list of aliases to search for. * @returns The line number and checksum of the target, or null if no target * references any of the given aliases. */ export declare const getTargetDetailsForAlias: (targetMarker: Marker | null | undefined, aliases: ReadonlyArray<string>) => TargetDetails | null; export {};