@esmx/router-vue
Version:
Vue integration for @esmx/router - A universal router that works seamlessly with both Vue 2.7+ and Vue 3
14 lines (13 loc) • 405 B
TypeScript
import type { Route, Router } from '@esmx/router';
import type { RouterLink } from './router-link';
import type { RouterView } from './router-view';
declare module 'vue' {
interface ComponentCustomProperties {
readonly $router: Router;
readonly $route: Route;
}
interface GlobalComponents {
RouterLink: typeof RouterLink;
RouterView: typeof RouterView;
}
}