@shikijs/types 3.19.0 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +4 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -666,6 +666,10 @@ interface CodeOptionsMultipleThemes<Themes extends string = string> {
|
|
|
666
666
|
type CodeOptionsThemes<Themes extends string = string> = CodeOptionsSingleTheme<Themes> | CodeOptionsMultipleThemes<Themes>;
|
|
667
667
|
type CodeToHastOptions<Languages extends string = string, Themes extends string = string> = CodeToHastOptionsCommon<Languages> & CodeOptionsThemes<Themes> & CodeOptionsMeta;
|
|
668
668
|
interface CodeToHastOptionsCommon<Languages extends string = string> extends TransformerOptions, DecorationOptions, Pick<TokenizeWithThemeOptions, 'colorReplacements' | 'tokenizeMaxLineLength' | 'tokenizeTimeLimit' | 'grammarState' | 'grammarContextCode' | 'includeExplanation'> {
|
|
669
|
+
/**
|
|
670
|
+
* Data to be added to the root `<pre>` element.
|
|
671
|
+
*/
|
|
672
|
+
data?: Record<string, unknown>;
|
|
669
673
|
/**
|
|
670
674
|
* The grammar name for the code.
|
|
671
675
|
*/
|