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(...@@ -18,7 +18,7 @@ export function createIncrementalHighlightedDocument(
18 highlighter: DiffsHighlighter,18 highlighter: DiffsHighlighter,
19 language: string,19 language: string,
20 theme: DiffThemeName,20 theme: DiffThemeName,
21) {21): (code: string) => ReturnType<DiffsHighlighter["codeToHast"]> {
22 const options = { lang: language, theme };22 const options = { lang: language, theme };
23 const newline = { type: "text" as const, value: "\n" };23 const newline = { type: "text" as const, value: "\n" };
24 let cached:24 let cached: