authorgravatar for 97411838+luke2x@users.noreply.github.comluke <97411838+luke2x@users.noreply.github.com> 2026-10-10 03:59:52+01:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-10 02:59:52+00:00
log2def3de4b931206d3387d222454af0daf4a274e2
tree8a3ed2a5d2602005f6dd59f3d70733b9930a2d17
parent9bbbbbab2a53ccc05a6b3c1ad8cc64ff411d185f
signature Signed by PGP key B5690EEEBB952194

fix(web): keep incremental highlighter return type portable (#17259)


1 files changed, 1 insertions(+), 1 deletions(-)

apps/web/src/lib/incrementalHighlighting.ts+1-1
......@@ -18,7 +18,7 @@ export function createIncrementalHighlightedDocument(
1818 highlighter: DiffsHighlighter,
1919 language: string,
2020 theme: DiffThemeName,
21) {
21): (code: string) => ReturnType<DiffsHighlighter["codeToHast"]> {
2222 const options = { lang: language, theme };
2323 const newline = { type: "text" as const, value: "\n" };
2424 let cached: