Skip to content

[Request] Add types to router events  #15496

@LauraBeatris

Description

@LauraBeatris

Feature request

Is your feature request related to a problem? Please describe.

It's not related to a problem, although, would be really nice to add types for the Router Events since it would be easier to use without having to refer every time to the documentation.

I think it's an easy enhancement that can improve the developer experience.

Describe the solution you'd like

I would like to have autocompletion for the router events.

Additional context

I added a string literal type for the events, and that's the result:

Screenshot at Jul 26 10-43-33

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions