Skip to content

Commit

Permalink
fix(BaseLink): use internal internal instead of import for props
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Sep 3, 2023
1 parent 73ae2f7 commit e49f48f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion components/base/BaseLink.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
<script setup lang="ts">
import type { NuxtLinkProps } from '#app'
/* eslint-disable vue/require-prop-comment */
import type { RouteLocationRaw } from '#vue-router'
// We can't use exported types from `#app` because vue doesn't support it yet.
type NuxtLinkProps = {
to?: RouteLocationRaw
href?: RouteLocationRaw
external?: boolean
replace?: boolean
custom?: boolean
// eslint-disable-next-line @typescript-eslint/ban-types
target?: '_blank' | '_parent' | '_self' | '_top' | (string & {}) | null
rel?: string | null
noRel?: boolean
prefetch?: boolean
noPrefetch?: boolean
activeClass?: string
exactActiveClass?: string
ariaCurrentValue?: string
}
const props = defineProps<NuxtLinkProps>()
const NuxtLink = defineNuxtLink({})
</script>
Expand Down

0 comments on commit e49f48f

Please sign in to comment.