twoslash-vue
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -1,7 +0,24 @@ | ||
import { CreateTwoslashOptions, TwoslashInstance } from 'twoslash'; | ||
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?: CreateTwoslashOptions, flag?: boolean): TwoslashInstance; | ||
declare function createTwoslasher(createOptions?: CreateTwoslashVueOptions): TwoslashInstance; | ||
/** | ||
@@ -12,2 +29,2 @@ * @deprecated Use `createTwoslasher` instead. | ||
export { createTwoslasher, createTwoslasherVue }; | ||
export { type CreateTwoslashVueOptions, type TwoslashVueExecuteOptions, type VueSpecificOptions, createTwoslasher, createTwoslasherVue }; |
{ | ||
"name": "twoslash-vue", | ||
"type": "module", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Extended Twoslash for Vue SFC support", | ||
@@ -48,3 +48,3 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"@vue/language-core": "^1.8.27", | ||
"twoslash": "0.0.8" | ||
"twoslash": "0.0.9" | ||
}, | ||
@@ -51,0 +51,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14346
239
+ Addedtwoslash@0.0.9(transitive)
- Removedtwoslash@0.0.8(transitive)
Updatedtwoslash@0.0.9