From: Eduardo San Martin Morote Date: Wed, 8 Oct 2025 14:22:17 +0000 (+0200) Subject: refactor: type imports X-Git-Tag: v4.6.0~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ab14bf5fa043b250c81cd722be06083ceb0d26d;p=thirdparty%2Fvuejs%2Frouter.git refactor: type imports --- diff --git a/packages/router/src/RouterLink.ts b/packages/router/src/RouterLink.ts index b76d4790..3012faaf 100644 --- a/packages/router/src/RouterLink.ts +++ b/packages/router/src/RouterLink.ts @@ -1,22 +1,22 @@ import { defineComponent, h, - PropType, + type PropType, inject, computed, reactive, unref, - VNode, - UnwrapRef, - VNodeProps, - AllowedComponentProps, - ComponentCustomProps, + type VNode, + type UnwrapRef, + type VNodeProps, + type AllowedComponentProps, + type ComponentCustomProps, getCurrentInstance, watchEffect, // this is a workaround for https://github.com/microsoft/rushstack/issues/1050 // this file is meant to be prepended to the generated dist/src/RouterLink.d.ts // @ts-ignore - ComputedRef, + type ComputedRef, // @ts-ignore DefineComponent, // @ts-ignore @@ -25,8 +25,8 @@ import { RendererNode, // @ts-ignore ComponentOptionsMixin, - MaybeRef, - AnchorHTMLAttributes, + type MaybeRef, + type AnchorHTMLAttributes, } from 'vue' import { isSameRouteLocationParams, isSameRouteRecord } from './location' import { routerKey, routeLocationKey } from './injectionSymbols'