fix(web): keep incremental highlighter return type portable (#17259)
This commit is contained in:
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user