-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-env.d.ts
40 lines (34 loc) · 1.24 KB
/
app-env.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { useLoadingBar, useMessage, useDialog, useNotification, useThemeVars } from 'naive-ui';
import { useFormApi } from '@chronicstone/vue-sweettools';
import type { RouteLocation } from "#vue-router";
declare module '#app' {
interface PageMeta {
auth?: boolean;
showLoginAction?: boolean;
breadcrumbs?: Array<{ label: string; slug?: RouteLocation["name"]; icon: string }>;
}
interface NuxtApp {
$formApi: ReturnType<typeof useFormApi>;
$messageApi: ReturnType<typeof useMessage>;
$loadingBarApi: ReturnType<typeof useLoadingBar>;
$dialogApi: ReturnType<typeof useDialog>;
$notificationApi: ReturnType<typeof useNotification>;
$themeVars: ReturnType<typeof useThemeVars>;
}
}
declare module 'vue' {
interface ComponentCustomProperties {
$formApi: ReturnType<typeof useFormApi>;
$messageApi: ReturnType<typeof useMessage>;
$loadingBarApi: ReturnType<typeof useLoadingBar>;
$dialogApi: ReturnType<typeof useDialog>;
$notificationApi: ReturnType<typeof useNotification>;
$themeVars: ReturnType<typeof useThemeVars>;
}
}
declare module "jsonwebtoken" {
import { sign, decode, verify } from "jsonwebtoken";
declare const jwt = { sign, decode, verify }
export default jwt
}
export {};