router icon indicating copy to clipboard operation
router copied to clipboard

Export a TypeScript type for 'vaadin-router-location-changed' event

Open Haprog opened this issue 3 years ago • 0 comments

Currently there is no TS type for the event vaadin-router-location-changed.

Router package should export a type like:

type RouterLocationChangedEvent = CustomEvent<{
  router: Router;
  location: RouterLocation;
}>;

so that it's easy to use the event in TS without having to cast the detail object.

Haprog avatar Sep 28 '21 06:09 Haprog