30 lines
1.0 KiB
TypeScript
Raw Normal View History

2026-05-31 13:21:13 +02:00
import { VueCompilerOptions } from '@vue/language-core';
import { CreateTwoslashOptions, TwoslashExecuteOptions, TwoslashInstance } from 'twoslash';
interface VueSpecificOptions {
/**
* Vue Compiler options
*/
vueCompilerOptions?: Partial<VueCompilerOptions>;
}
interface CreateTwoslashVueOptions extends CreateTwoslashOptions, VueSpecificOptions {
/**
* Render the generated code in the output instead of the Vue file
*
* @default false
*/
debugShowGeneratedCode?: boolean;
}
interface TwoslashVueExecuteOptions extends TwoslashExecuteOptions, VueSpecificOptions {
}
/**
* Create a twoslasher instance that add additional support for Vue SFC.
*/
declare function createTwoslasher(createOptions?: CreateTwoslashVueOptions): TwoslashInstance;
/**
* @deprecated Use `createTwoslasher` instead.
*/
declare const createTwoslasherVue: typeof createTwoslasher;
export { type CreateTwoslashVueOptions, type TwoslashVueExecuteOptions, type VueSpecificOptions, createTwoslasher, createTwoslasherVue };