@shikijs/types
Advanced tools
Comparing version 1.18.0 to 1.19.0
@@ -363,4 +363,9 @@ import { Element, Root } from 'hast'; | ||
* When specified, `color` and `fontStyle` will be ignored. | ||
* Prefer use object style for merging with other styles. | ||
*/ | ||
htmlStyle?: string; | ||
htmlStyle?: string | Record<string, string>; | ||
/** | ||
* Extra HTML attributes for the token. | ||
*/ | ||
htmlAttrs?: Record<string, string>; | ||
} | ||
@@ -517,3 +522,3 @@ interface ThemedTokenWithVariants extends TokenBase { | ||
*/ | ||
span?: (this: ShikiTransformerContext, hast: Element, line: number, col: number, lineElement: Element) => Element | void; | ||
span?: (this: ShikiTransformerContext, hast: Element, line: number, col: number, lineElement: Element, token: ThemedToken) => Element | void; | ||
/** | ||
@@ -551,2 +556,4 @@ * Transform the generated HTML string before returning. | ||
* Load wasm file from a custom path or using a custom function. | ||
* | ||
* @deprecated Use `engine: createWasmOnigEngine(loadWasm)` instead. | ||
*/ | ||
@@ -553,0 +560,0 @@ loadWasm?: Sync extends true ? never : LoadWasmOptions; |
{ | ||
"name": "@shikijs/types", | ||
"type": "module", | ||
"version": "1.18.0", | ||
"version": "1.19.0", | ||
"description": "Type definitions for Shiki", | ||
@@ -6,0 +6,0 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59421
807