15 lines
496 B
TypeScript
15 lines
496 B
TypeScript
|
|
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 };
|