Open
Description
🚀 Feature Request
vue-component-type-helpers
is already used for the mount props, but it would be nice to extend its use to slots and events as well:
- slots: https://github.com/vuejs/language-tools/blob/5c65f102d01ade46975001e8509f26a2d90774e9/packages/component-type-helpers/index.ts#L11-L14
- events: https://github.com/vuejs/language-tools/blob/5c65f102d01ade46975001e8509f26a2d90774e9/packages/component-type-helpers/index.ts#L16-L18
Example
mount(Component, { slots: { does_not_exist: 'does_not_ exist' } }
<-- throws an type errormount(Component, { on: { does_not_exist: () => {} } }
<-- throws an type error
Motivation
Type errors directly into my editor without having to run the tests to see where the problem is