@shikijs/twoslash
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -51,2 +51,13 @@ import { TwoslashReturn, TwoslashExecuteOptions, TwoslashGenericFunction, TwoslashOptions, NodeError, NodeTag, NodeQuery, NodeCompletion, NodeHover, NodeHighlight } from 'twoslash'; | ||
throws?: boolean; | ||
/** | ||
* Custom error handler for twoslash errors | ||
* When specified, `throws` will be ignored | ||
* Optionally return a string to replace the code | ||
*/ | ||
onTwoslashError?: (error: unknown, code: string, lang: string, options: CodeToHastOptions) => string | void; | ||
/** | ||
* Custom error handler for Shiki errors | ||
* When specified, `throws` will be ignored | ||
*/ | ||
onShikiError?: (error: unknown) => void; | ||
} | ||
@@ -53,0 +64,0 @@ interface TwoslashRenderer { |
{ | ||
"name": "@shikijs/twoslash", | ||
"type": "module", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Shiki transformer for twoslash", | ||
@@ -52,4 +52,4 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"dependencies": { | ||
"twoslash": "^0.2.0", | ||
"@shikijs/core": "1.1.0" | ||
"twoslash": "^0.2.1", | ||
"@shikijs/core": "1.1.1" | ||
}, | ||
@@ -56,0 +56,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
73292
1993
+ Added@shikijs/core@1.1.1(transitive)
- Removed@shikijs/core@1.1.0(transitive)
Updated@shikijs/core@1.1.1
Updatedtwoslash@^0.2.1