30 lines
464 B
TypeScript
30 lines
464 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
import 'axios'
|
|
import 'vue-router'
|
|
|
|
declare module 'vue-router' {
|
|
interface RouteMeta {
|
|
layout?: 'default' | 'none'
|
|
title?: string
|
|
requiresAuth?: boolean
|
|
guestOnly?: boolean
|
|
roles?: string[]
|
|
}
|
|
}
|
|
|
|
declare module 'axios' {
|
|
interface AxiosRequestConfig {
|
|
meta?: {
|
|
silentToast?: boolean
|
|
}
|
|
}
|
|
|
|
interface InternalAxiosRequestConfig {
|
|
meta?: {
|
|
silentToast?: boolean
|
|
}
|
|
}
|
|
}
|
|
|