Skip to content

[Feature]: Vue typesafe mount slots and events #31214

Open
@sand4rt

Description

@sand4rt

🚀 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:

Example

  • mount(Component, { slots: { does_not_exist: 'does_not_ exist' } } <-- throws an type error
  • mount(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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions