pr_01m47d15m3e54sn21z27rpy5n9/apps/web/app/lib/diff.ts
| 1 | import type { Comparison, DiffLine, FileDiff } from "@g1t/contracts"; |
| 2 | |
| 3 | /** A diff line, with its text as highlighted HTML when the language is known. */ |
| 4 | export type HighlightedLine = DiffLine & { html?: string }; |
| 5 | export type HighlightedFile = Omit<FileDiff, "hunks"> & { hunks: { lines: HighlightedLine[] }[] }; |
| 6 | export type HighlightedComparison = Omit<Comparison, "files"> & { files: HighlightedFile[] }; |