Type safe render options (props, slots, emits)
sand4rt opened this issue · 1 comments
sand4rt commented
Vue released a library (https://www.npmjs.com/package/vue-component-type-helpers) with some type helpers like ComponentProps<typeof Component>, ComponentSlots<typeof Component> and ComponentEmits<typeof Component> which could make the render options type safe.
VTU also recently integrated this library: https://github.com/vuejs/test-utils/blob/main/test-dts/mount.d-test.ts#L60.
related to: #228 and microsoft/playwright#23151