@shikijs/twoslash
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -1,2 +0,2 @@ | ||
import { TwoslashReturn, TwoslashExecuteOptions, TwoslashOptions, NodeError, NodeTag, NodeQuery, NodeCompletion, NodeHover, NodeHighlight } from 'twoslash'; | ||
import { TwoslashReturn, TwoslashExecuteOptions, TwoslashGenericFunction, TwoslashOptions, NodeError, NodeTag, NodeQuery, NodeCompletion, NodeHover, NodeHighlight } from 'twoslash'; | ||
import { CodeToHastOptions, ShikiTransformerContext, ShikiTransformerContextCommon, ShikiTransformer } from '@shikijs/core'; | ||
@@ -37,3 +37,3 @@ import { ElementContent, Element, Text } from 'hast'; | ||
*/ | ||
twoslasher?: TwoslashShikiFunction; | ||
twoslasher?: TwoslashShikiFunction | TwoslashGenericFunction; | ||
/** | ||
@@ -66,6 +66,2 @@ * Options to pass to twoslash | ||
type CompletionItem = NonNullable<NodeCompletion['completions']>[number]; | ||
declare const defaultCompletionIcons: Record<CompletionItem['kind'], Element | undefined>; | ||
declare const defaultCustomTagIcons: Record<string, Element | undefined>; | ||
interface RendererRichOptions { | ||
@@ -85,3 +81,3 @@ /** | ||
*/ | ||
completionIcons?: Partial<Record<CompletionItem['kind'], ElementContent>> | false; | ||
completionIcons?: Partial<Record<string, ElementContent>> | false; | ||
/** | ||
@@ -251,2 +247,6 @@ * Custom icons for custom tags lines. | ||
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 { | ||
@@ -262,4 +262,4 @@ constructor(message: string); | ||
declare function defaultTwoslashOptions(): TwoslashExecuteOptions; | ||
declare function createTransformerFactory(defaultTwoslasher: TwoslashShikiFunction, defaultRenderer?: TwoslashRenderer): (options?: TransformerTwoslashOptions) => ShikiTransformer; | ||
declare function createTransformerFactory(defaultTwoslasher: TwoslashShikiFunction | TwoslashGenericFunction, defaultRenderer?: TwoslashRenderer): (options?: TransformerTwoslashOptions) => ShikiTransformer; | ||
export { type CompletionItem, type HastExtension, type RendererRichOptions, ShikiTwoslashError, type TransformerTwoslashOptions, type TwoslashRenderer, type TwoslashShikiFunction, type TwoslashShikiReturn, createTransformerFactory, defaultCompletionIcons, defaultCustomTagIcons, defaultHoverInfoProcessor, defaultTwoslashOptions, rendererClassic, rendererRich }; |
{ | ||
"name": "@shikijs/twoslash", | ||
"type": "module", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Shiki transformer for twoslash", | ||
@@ -52,7 +52,7 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"dependencies": { | ||
"twoslash": "^0.1.2", | ||
"@shikijs/core": "1.0.0" | ||
"twoslash": "^0.2.0", | ||
"@shikijs/core": "1.1.0" | ||
}, | ||
"devDependencies": { | ||
"@iconify-json/carbon": "^1.1.28", | ||
"@iconify-json/carbon": "^1.1.29", | ||
"@iconify-json/codicon": "^1.1.41", | ||
@@ -59,0 +59,0 @@ "@shikijs/twoslash": "^3.1.2", |
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
71924
1970
+ Added@shikijs/core@1.1.0(transitive)
+ Added@typescript/vfs@1.6.0(transitive)
+ Addedtwoslash@0.2.12(transitive)
+ Addedtwoslash-protocol@0.2.12(transitive)
- Removed@shikijs/core@1.0.0(transitive)
- Removed@typescript/vfs@1.5.0(transitive)
- Removedtwoslash@0.1.2(transitive)
Updated@shikijs/core@1.1.0
Updatedtwoslash@^0.2.0