You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@shikijs/types

Package Overview
Dependencies
Maintainers
3
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shikijs/types - npm Package Compare versions

Comparing version
3.18.0
to
3.19.0
+11
-2
dist/index.d.mts

@@ -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>",