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

This commit is contained in:
luke authored and GitHub committed 2026-10-10 02:59:52 +00:00
1 parent 9bbbbbab2a
commit 2def3de4b9
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@ export function createIncrementalHighlightedDocument(
highlighter: DiffsHighlighter,
language: string,
theme: DiffThemeName,
) {
): (code: string) => ReturnType<DiffsHighlighter["codeToHast"]> {
const options = { lang: language, theme };
const newline = { type: "text" as const, value: "\n" };
let cached: