@shikijs/twoslash 1.1.6 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,8 +1,7 @@
1
- import * as _shikijs_core_dist_chunk_tokens_mjs from '@shikijs/core/dist/chunk-tokens.mjs';
1
+ import * as _shikijs_core from '@shikijs/core';
2
2
  import { CreateTwoslashOptions } from 'twoslash';
3
3
  import { TransformerTwoslashOptions, RendererRichOptions } from './core.mjs';
4
4
  export { CompletionItem, HastExtension, ShikiTwoslashError, TwoslashRenderer, TwoslashShikiFunction, TwoslashShikiReturn, createTransformerFactory, defaultCompletionIcons, defaultCustomTagIcons, defaultHoverInfoProcessor, defaultTwoslashOptions, rendererClassic, rendererRich } from './core.mjs';
5
- import '@shikijs/core';
6
5
  import 'hast';
7
6
 
8
7
  interface TransformerTwoslashIndexOptions extends TransformerTwoslashOptions, Pick<CreateTwoslashOptions, 'cache'> {
@@ -16,6 +15,6 @@ interface TransformerTwoslashIndexOptions extends TransformerTwoslashOptions, Pi
16
15
  /**
17
16
  * Factory function to create a Shiki transformer for twoslash integrations.
18
17
  */
19
- declare function transformerTwoslash(options?: TransformerTwoslashIndexOptions): _shikijs_core_dist_chunk_tokens_mjs.A;
18
+ declare function transformerTwoslash(options?: TransformerTwoslashIndexOptions): _shikijs_core.ShikiTransformer;
20
19
 
21
20
  export { RendererRichOptions, type TransformerTwoslashIndexOptions, TransformerTwoslashOptions, transformerTwoslash };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import * as _shikijs_core_dist_chunk_tokens_mjs from '@shikijs/core/dist/chunk-tokens.mjs';
1
+ import * as _shikijs_core from '@shikijs/core';
2
2
  import { CreateTwoslashOptions } from 'twoslash';
3
3
  import { TransformerTwoslashOptions, RendererRichOptions } from './core.js';
4
4
  export { CompletionItem, HastExtension, ShikiTwoslashError, TwoslashRenderer, TwoslashShikiFunction, TwoslashShikiReturn, createTransformerFactory, defaultCompletionIcons, defaultCustomTagIcons, defaultHoverInfoProcessor, defaultTwoslashOptions, rendererClassic, rendererRich } from './core.js';
5
- import '@shikijs/core';
6
5
  import 'hast';
7
6
 
8
7
  interface TransformerTwoslashIndexOptions extends TransformerTwoslashOptions, Pick<CreateTwoslashOptions, 'cache'> {
@@ -16,6 +15,6 @@ interface TransformerTwoslashIndexOptions extends TransformerTwoslashOptions, Pi
16
15
  /**
17
16
  * Factory function to create a Shiki transformer for twoslash integrations.
18
17
  */
19
- declare function transformerTwoslash(options?: TransformerTwoslashIndexOptions): _shikijs_core_dist_chunk_tokens_mjs.A;
18
+ declare function transformerTwoslash(options?: TransformerTwoslashIndexOptions): _shikijs_core.ShikiTransformer;
20
19
 
21
20
  export { RendererRichOptions, type TransformerTwoslashIndexOptions, TransformerTwoslashOptions, transformerTwoslash };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/twoslash",
3
3
  "type": "module",
4
- "version": "1.1.6",
4
+ "version": "1.2.0",
5
5
  "description": "Shiki transformer for twoslash",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -50,14 +50,14 @@
50
50
  ],
51
51
  "dependencies": {
52
52
  "twoslash": "^0.2.4",
53
- "@shikijs/core": "1.1.6"
53
+ "@shikijs/core": "1.2.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@iconify-json/carbon": "^1.1.30",
57
- "@iconify-json/codicon": "^1.1.42",
56
+ "@iconify-json/carbon": "^1.1.31",
57
+ "@iconify-json/codicon": "^1.1.44",
58
58
  "@shikijs/twoslash": "^3.1.2",
59
59
  "hast-util-from-html": "^2.0.1",
60
- "typescript": "^5.3.3"
60
+ "typescript": "^5.4.2"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "unbuild",