forked from halo-dev/halo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.d.ts
128 lines (104 loc) · 2.3 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/// <reference types="vite/client" />
/// <reference types="unplugin-icons/types/vue" />
export {};
import type { CoreMenuGroupId } from "@halo-dev/console-shared";
import type { FormKitInputs } from "@formkit/inputs";
import "vue-router";
import "axios";
declare module "*.vue" {
import type { DefineComponent } from "vue";
// eslint-disable-next-line
const component: DefineComponent<{}, {}, any>;
export default component;
}
declare module "vue-router" {
import type { Component } from "vue";
interface RouteMeta {
title?: string;
description?: string;
searchable?: boolean;
permissions?: string[];
core?: boolean;
hideFooter?: boolean;
menu?: {
name: string;
group?: CoreMenuGroupId;
icon?: Component;
priority: number;
mobile?: boolean;
};
}
}
declare module "axios" {
export interface AxiosRequestConfig {
mute?: boolean;
}
}
declare module "@formkit/inputs" {
export interface FormKitInputProps<Props extends FormKitInputs<Props>> {
"datetime-local": {
type: "datetime-local";
value?: string;
};
attachmentGroupSelect: {
type: "attachmentGroupSelect";
value?: string;
};
attachmentPolicySelect: {
type: "attachmentPolicySelect";
value?: string;
};
attachment: {
type: "attachment";
value?: string;
};
categoryCheckbox: {
type: "categoryCheckbox";
value?: string[];
};
tagSelect: {
type: "tagSelect";
value?: string | string[];
};
repeater: {
type: "repeater";
value?: Record<string, unknown>[];
};
categorySelect: {
type: "categorySelect";
value?: string | string[];
};
tagCheckbox: {
type: "tagCheckbox";
value?: string[];
};
singlePageSelect: {
type: "singlePageSelect";
value?: string;
};
roleSelect: {
type: "roleSelect";
value?: string;
};
postSelect: {
type: "postSelect";
value?: string;
};
menuRadio: {
type: "menuRadio";
value?: string;
};
menuItemSelect: {
type: "menuItemSelect";
value?: string;
};
menuCheckbox: {
type: "menuCheckbox";
value?: string[];
};
code: {
type: "code";
value?: string;
};
}
}