chore(VerticalNavigation): rename Link to VerticalNavigationLink type

This commit is contained in:
Benjamin Canac
2023-07-17 11:18:05 +02:00
parent 5a4d0e1097
commit 908235e8dd
2 changed files with 3 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ import { omit } from 'lodash-es'
import UIcon from '../elements/Icon.vue'
import UAvatar from '../elements/Avatar.vue'
import ULinkCustom from '../elements/LinkCustom.vue'
import type { Link } from '../../types/vertical-navigation'
import type { VerticalNavigationLink } from '../../types/vertical-navigation'
import { useAppConfig } from '#imports'
// TODO: Remove
// @ts-expect-error
@@ -61,7 +61,7 @@ export default defineComponent({
},
props: {
links: {
type: Array as PropType<Link[]>,
type: Array as PropType<VerticalNavigationLink[]>,
default: () => []
},
ui: {

View File

@@ -1,7 +1,7 @@
import type { RouteLocationRaw } from 'vue-router'
import type { Avatar } from './avatar'
export interface Link {
export interface VerticalNavigationLink {
to?: string | RouteLocationRaw
exact?: boolean
label: string