-
Notifications
You must be signed in to change notification settings - Fork 857
/
Copy pathmodule-interface.d.ts
104 lines (96 loc) · 2.2 KB
/
module-interface.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
/* eslint-disable @typescript-eslint/ban-types */
interface Module {
getModule(): Promise<VuexConstructor> | VuexConstructor;
}
interface VuexConstructor {
state?: {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[key: string]: any;
};
mutations?: {
[key: string]: Function;
};
actions?: {
[key: string]:
| Function
| {
root: boolean;
handler: Function;
};
};
getters?: {
[key: string]: Function;
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
modules?: Record<string, any>;
plugins?: Array<Function>;
strict?: boolean;
devtools?: boolean;
}
interface MenuState {
version: string;
zoom: number;
autolock: number;
useAutofill: boolean;
smartFilter: boolean;
enableContextMenu: boolean;
theme: string;
backupDisabled: boolean;
storageArea: "sync" | "local";
}
interface StyleState {
style: {
timeout: boolean;
isEditing: boolean;
slidein: boolean;
slideout: boolean;
fadein: boolean;
fadeout: boolean;
show: boolean;
qrfadein: boolean;
qrfadeout: boolean;
notificationFadein: boolean;
notificationFadeout: boolean;
hotpDisabled: boolean;
};
}
interface AccountsState {
entries: OTPEntryInterface[];
defaultEncryption: string;
encryption: Map<string, EncryptionInterface>;
OTPType: number;
shouldShowPassphrase: boolean;
sectorStart: boolean;
sectorOffset: number;
second: number;
notification: string;
filter: boolean;
siteName: (string | null)[];
showSearch: boolean;
exportData: { [k: string]: OTPEntryInterface };
exportEncData: { [k: string]: OTPEntryInterface | Key };
keys: OldKey | Key[];
wrongPassword: boolean;
initComplete: boolean;
}
interface NotificationState {
message: Array<string>;
confirmMessage: string;
messageIdle: boolean;
notification: string;
}
interface BackupState {
dropboxEncrypted: boolean;
driveEncrypted: boolean;
oneDriveEncrypted: boolean;
dropboxToken: boolean;
driveToken: boolean;
oneDriveToken: boolean;
}
interface AdvisorState {
insights: AdvisorInsightInterface[];
ignoreList: string[];
}
interface PermissionsState {
permissions: PermissionInterface[];
}