vue-ts-props-plugin-vite
v0.1.0
Published
Vue plugin to auto infer runtime props options from type.
Downloads
3
Maintainers
Readme
What is this
This is a plugin to implement this.It will compiler code defineComponent((props:Props)=>(()=>JSX)))
to defineComponent({props,setup})
.
Install
//vite
yarn install vue-ts-props-plugin-vite
Usage
//vite
import { defineConfig } from "vite";
import { VueTSPropsPlugin } from "vue-ts-props-plugin-vite";
export default defineConfig({
plugins:[VueTSPropsPlugin()]
})