wheatjs / vite-plugin-vue-type-imports

Import types in Vue SFC for defineProps
223 stars 16 forks source link

Vite 4 support #46

Open eshimischi opened 1 year ago

eshimischi commented 1 year ago

Peer dependency is fair enough

rah-emil commented 1 year ago

Peer dependency is fair enough

I added PR #47 I couldn't wait, so I published myself version https://www.npmjs.com/package/@rah-emil/vite-plugin-vue-type-imports It's working for my project

codepandy commented 1 year ago

it is not working for me. the below is my solution

import type { IUsers} from '../types'

interface Props extends IUsers{
  rowId?: string
}

const wordData = defineProps<Props>()