wheatjs / vite-plugin-vue-type-imports

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

support Props extends X #10

Open sondh0127 opened 2 years ago

sondh0127 commented 2 years ago

image Is that posible to make defineProps work like this image

wheatjs commented 2 years ago

tbh I'm trying to keep this library pretty minimal as just a stop gap until Vue implements this. When testing it I don't think they supported using extends. I'd try opening an issue in the Vue library first

hi-reeve commented 2 years ago

does this plugin support extends already?

Zolyn commented 2 years ago

The plugin supports extends partially. See Known limitations for unsupported types.

You can find a simple example from here