File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,12 @@ import type {
1919import type { OutputFormat , OutputFormatMap } from './types' ;
2020
2121/**
22- * Highlighter with loosened method signatures for dynamic language/theme usage.
22+ * Shiki's Highlighter methods are parameterized by BundledLanguage/BundledTheme,
23+ * but we accept dynamic string values. This type widens the method signatures.
2324 */
2425type LooseHighlighter = ( Highlighter | HighlighterCore ) & {
2526 codeToTokens ( code : string , options : CodeToTokensOptions ) : TokensResult ;
26- codeToTokensBase (
27- code : string ,
28- options : CodeToTokensBaseOptions
29- ) : ThemedToken [ ] [ ] ;
27+ codeToTokensBase ( code : string , options : CodeToTokensBaseOptions ) : ThemedToken [ ] [ ] ;
3028} ;
3129
3230type TransformContext = {
You can’t perform that action at this time.
0 commit comments