Socket
Socket
Sign inDemoInstall

@shikijs/twoslash

Package Overview
Dependencies
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shikijs/twoslash - npm Package Compare versions

Comparing version 1.16.2 to 1.16.3

33

dist/core.d.ts

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc