File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/vitepress-twoslash/src Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable node/prefer-global/process */
22import type { TransformerTwoslashOptions } from '@shikijs/twoslash/core'
33import { createTransformerFactory } from '@shikijs/twoslash/core'
4+ import type { VueSpecificOptions } from 'twoslash-vue'
45import { createTwoslasher } from 'twoslash-vue'
56import type { ShikiTransformer } from 'shiki'
67import { removeTwoslashNotations } from 'twoslash'
@@ -9,7 +10,11 @@ import { rendererFloatingVue } from './renderer-floating-vue'
910
1011export * from './renderer-floating-vue'
1112
12- export interface VitePressPluginTwoslashOptions extends TransformerTwoslashOptions , TwoslashFloatingVueRendererOptions {
13+ interface TransformerTwoslashVueOptions extends TransformerTwoslashOptions {
14+ twoslashOptions ?: TransformerTwoslashOptions [ 'twoslashOptions' ] & VueSpecificOptions
15+ }
16+
17+ export interface VitePressPluginTwoslashOptions extends TransformerTwoslashVueOptions , TwoslashFloatingVueRendererOptions {
1318 /**
1419 * Requires adding `twoslash` to the code block explicitly to run twoslash
1520 * @default true
You can’t perform that action at this time.
0 commit comments