Skip to content

Register

Represents the state of currently registered router, and rejections. Used to provide correct type context for components like RouterLink, as well as for composables like useRouter, useRoute, and hooks.

Example

ts
declare module '@kitbag/router' {
  interface Register {
    router: typeof router
  }
}