replace?: Ref<boolean> | boolean
}
+// TODO: what should be accepted as arguments?
export function useLink(props: UseLinkProps) {
const router = inject('router')
// ensure when returning that the redirectedFrom is a normalized location
): RouteLocationNormalized {
currentLocation = currentLocation || currentRoute.value
+ // TODO: still return a normalized location with no matched records if no location is found
const matchedRoute = matcher.resolve(location, currentLocation)
if ('redirect' in matchedRoute) {