diff --git a/env.d.ts b/env.d.ts index db56195..6b471d9 100644 --- a/env.d.ts +++ b/env.d.ts @@ -1,2 +1,29 @@ /// -/// + +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 + } + } +} +