parse-lcov
Version:
10 lines (9 loc) • 427 B
TypeScript
export declare type LineType = "TN" | "SF" | "FN" | "FNDA" | "FNF" | "FNH" | "BRDA" | "BRF" | "BRH" | "DA" | "LF" | "LH";
export declare function isLineType(string: string): string is LineType;
export declare type End = "end_of_record";
export declare function isEnd(string: string): string is End;
export declare type Line = {
type?: LineType;
data: string[];
};
export declare function parseLine(line: string): Line;