@shikijs/vitepress-twoslash
Version:
Enable Twoslash support in VitePress
12 lines (11 loc) • 717 B
text/typescript
import { a as rendererFloatingVue, i as defaultHoverInfoProcessor, n as TwoslashFloatingVueOptions, r as TwoslashFloatingVueRendererOptions, t as VitePressPluginTwoslashOptions } from "./types-BvNUFoZh.mjs";
import { ShikiTransformer } from "shiki";
//#region src/index.d.ts
/**
* Create a Shiki transformer for VitePress to enable twoslash integration
*
* Add this to `markdown.codeTransformers` in `.vitepress/config.ts`
*/
declare function transformerTwoslash(options?: VitePressPluginTwoslashOptions): ShikiTransformer;
//#endregion
export { TwoslashFloatingVueOptions, TwoslashFloatingVueRendererOptions, VitePressPluginTwoslashOptions, defaultHoverInfoProcessor, rendererFloatingVue, transformerTwoslash };