@shikijs/twoslash
Advanced tools
Comparing version 1.16.2 to 1.16.3
@@ -0,3 +1,3 @@ | ||
import { CodeToHastOptions, ShikiTransformerContext, ShikiTransformerContextCommon, ShikiTransformer } from '@shikijs/core'; | ||
import { TwoslashReturn, TwoslashExecuteOptions, TwoslashGenericFunction, TwoslashOptions, NodeError, NodeTag, NodeQuery, NodeCompletion, NodeHover, NodeHighlight } from 'twoslash'; | ||
import { CodeToHastOptions, ShikiTransformerContext, ShikiTransformerContextCommon, ShikiTransformer } from '@shikijs/core'; | ||
import { ElementContent, Element, Text } from 'hast'; | ||
@@ -81,2 +81,15 @@ | ||
declare class ShikiTwoslashError extends Error { | ||
constructor(message: string); | ||
} | ||
type CompletionItem = NonNullable<NodeCompletion['completions']>[number]; | ||
declare const defaultCompletionIcons: Record<string, Element | undefined>; | ||
declare const defaultCustomTagIcons: Record<string, Element | undefined>; | ||
/** | ||
* The default renderer aligning with the original `@shikijs/twoslash` output. | ||
*/ | ||
declare function rendererClassic(): TwoslashRenderer; | ||
interface RendererRichOptions { | ||
@@ -263,20 +276,2 @@ /** | ||
/** | ||
* The default renderer aligning with the original `@shikijs/twoslash` output. | ||
*/ | ||
declare function rendererClassic(): TwoslashRenderer; | ||
type CompletionItem = NonNullable<NodeCompletion['completions']>[number]; | ||
declare const defaultCompletionIcons: Record<string, Element | undefined>; | ||
declare const defaultCustomTagIcons: Record<string, Element | undefined>; | ||
declare class ShikiTwoslashError extends Error { | ||
constructor(message: string); | ||
} | ||
/** | ||
* This file is the core of the @shikijs/twoslash package, | ||
* Decoupled from twoslash's implementation and allowing to introduce custom implementation or cache system. | ||
*/ | ||
declare function defaultTwoslashOptions(): TwoslashExecuteOptions; | ||
@@ -283,0 +278,0 @@ declare function createTransformerFactory(defaultTwoslasher: TwoslashShikiFunction | TwoslashGenericFunction, defaultRenderer?: TwoslashRenderer): (options?: TransformerTwoslashOptions) => ShikiTransformer; |
{ | ||
"name": "@shikijs/twoslash", | ||
"type": "module", | ||
"version": "1.16.2", | ||
"version": "1.16.3", | ||
"description": "Shiki transformer for twoslash", | ||
@@ -52,4 +52,4 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"dependencies": { | ||
"twoslash": "^0.2.10", | ||
"@shikijs/core": "1.16.2" | ||
"twoslash": "^0.2.11", | ||
"@shikijs/core": "1.16.3" | ||
}, | ||
@@ -61,3 +61,3 @@ "devDependencies": { | ||
"typescript": "^5.5.4", | ||
"@shikijs/twoslash": "1.16.2" | ||
"@shikijs/twoslash": "1.16.3" | ||
}, | ||
@@ -64,0 +64,0 @@ "scripts": { |
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
77550
2117
+ Added@shikijs/core@1.16.3(transitive)
+ Addedoniguruma-to-js@0.3.3(transitive)
+ Addedregex@4.3.2(transitive)
- Removed@shikijs/core@1.16.2(transitive)
Updated@shikijs/core@1.16.3
Updatedtwoslash@^0.2.11