pr-check / src / interfaces / FileDiff.ts
FileDiff.ts
Raw
/**
 * FileDiff interface
 * @field fileName - the name of the file
 * @field startLine - the line number of the first line of the diff
 * @field endLine - the line number of the last line of the diff
 * @field lines - the lines of the diff
 */
interface FileDiff {
  fileName: string;
  lines: Line[];
}

interface Line {
  lineNum: number;
  content: string;
}

export type { FileDiff, Line };