From 2def3de4b931206d3387d222454af0daf4a274e2 Mon Sep 17 00:00:00 2001 From: luke <97411838+luke2x@users.noreply.github.com> Date: Sat, 10 Oct 2026 03:59:52 +0100 Subject: [PATCH] fix(web): keep incremental highlighter return type portable (#17259) --- apps/web/src/lib/incrementalHighlighting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/lib/incrementalHighlighting.ts b/apps/web/src/lib/incrementalHighlighting.ts index fef3598a21520c9386b093ac512029876c74e38c..4124d858f159c6513e63a98d4c42dfbd46cc12e6 100644 --- a/apps/web/src/lib/incrementalHighlighting.ts +++ b/apps/web/src/lib/incrementalHighlighting.ts @@ -18,7 +18,7 @@ export function createIncrementalHighlightedDocument( highlighter: DiffsHighlighter, language: string, theme: DiffThemeName, -) { +): (code: string) => ReturnType { const options = { lang: language, theme }; const newline = { type: "text" as const, value: "\n" }; let cached: -- 2.54.0