UNPKG

@shikijs/vitepress-twoslash

Version:

Enable Twoslash support in VitePress

15 lines (12 loc) 496 B
import { App } from 'vue'; import FloatingVue from 'floating-vue'; type FloatingVueConfig = Parameters<(typeof FloatingVue)['install']>[1]; /** * Vue plugin to install FloatingVue with styles. * * Import this function in `.vitepress/theme/index.ts` and use `app.use(TwoslashFloatingVue)` inside the `enhanceApp` hook. */ declare const TwoslashFloatingVue: { install: (app: App, options?: FloatingVueConfig) => void; }; export { type FloatingVueConfig, TwoslashFloatingVue as default };