]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
types: export augmented interfaces
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 12 Aug 2020 07:34:13 +0000 (09:34 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 12 Aug 2020 07:34:13 +0000 (09:34 +0200)
src/index.ts

index d16365921a82f99c7755f88859da02f031b7ad0a..90b46d2e1649e4290cff88ec50bb854b5b715f57 100644 (file)
@@ -63,7 +63,7 @@ export { RouterView, RouterViewProps } from './RouterView'
 export * from './useApi'
 
 declare module '@vue/runtime-core' {
-  interface ComponentCustomOptions {
+  export interface ComponentCustomOptions {
     /**
      * Guard called when the router is navigating to the route that is rendering
      * this component from a different route. Differently from `beforeRouteUpdate`
@@ -102,7 +102,7 @@ declare module '@vue/runtime-core' {
     beforeRouteLeave?: NavigationGuard
   }
 
-  interface ComponentCustomProperties {
+  export interface ComponentCustomProperties {
     /**
      * Normalized current location. See {@link RouteLocationNormalizedLoaded}.
      */