Skip to content

Commit a4e3b3c

Browse files
committed
fix(web): keep incremental highlighter return type portable
1 parent a6ec88f commit a4e3b3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/web/src/lib/incrementalHighlighting.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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:

0 commit comments

Comments
 (0)