@shikijs/types
Advanced tools
+11
-2
@@ -451,3 +451,3 @@ import { Element, Root } from 'hast'; | ||
| */ | ||
| rootStyle?: string; | ||
| rootStyle?: string | false; | ||
| /** | ||
@@ -669,5 +669,14 @@ * The last grammar state of the code snippet. | ||
| type CodeToHastOptions<Languages extends string = string, Themes extends string = string> = CodeToHastOptionsCommon<Languages> & CodeOptionsThemes<Themes> & CodeOptionsMeta; | ||
| interface CodeToHastOptionsCommon<Languages extends string = string> extends TransformerOptions, DecorationOptions, Pick<TokenizeWithThemeOptions, 'colorReplacements' | 'tokenizeMaxLineLength' | 'tokenizeTimeLimit' | 'grammarState' | 'grammarContextCode'> { | ||
| interface CodeToHastOptionsCommon<Languages extends string = string> extends TransformerOptions, DecorationOptions, Pick<TokenizeWithThemeOptions, 'colorReplacements' | 'tokenizeMaxLineLength' | 'tokenizeTimeLimit' | 'grammarState' | 'grammarContextCode' | 'includeExplanation'> { | ||
| /** | ||
| * The grammar name for the code. | ||
| */ | ||
| lang: StringLiteralUnion<Languages | SpecialLanguage>; | ||
| /** | ||
| * Custom style string to be applied to the root `<pre>` element. | ||
| * | ||
| * When set to `false`, no style will be applied. | ||
| */ | ||
| rootStyle?: string | false; | ||
| /** | ||
| * Merge whitespace tokens to saving extra `<span>`. | ||
@@ -674,0 +683,0 @@ * |
+1
-1
| { | ||
| "name": "@shikijs/types", | ||
| "type": "module", | ||
| "version": "3.18.0", | ||
| "version": "3.19.0", | ||
| "description": "Type definitions for Shiki", | ||
@@ -6,0 +6,0 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
32851
0.81%