| ... | @@ -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: |