router.d.ts 481 B

123456789101112131415161718
  1. import Vue from 'vue';
  2. import {
  3. RouteResolverOptions,
  4. RouteStoreResolveCallback,
  5. } from '../../components/route/route-component';
  6. import { RouteStoreOptions } from '../../components/route/route-store';
  7. declare module 'vue/types/options' {
  8. interface ComponentOptions<V extends Vue> {
  9. __RESOLVER__?: any;
  10. routeResolverOptions?: RouteResolverOptions & {
  11. hasResolver?: boolean;
  12. resolveStore?: RouteStoreResolveCallback;
  13. };
  14. routeStoreOptions?: RouteStoreOptions;
  15. }
  16. }