1- interface IModule {
1+ interface Module {
22 getModule ( ) : Promise < VuexConstructor > | VuexConstructor ;
33}
44
55interface VuexConstructor {
66 state ?: {
7+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
78 [ key : string ] : any ;
89 } ;
910 mutations ?: {
@@ -13,76 +14,77 @@ interface VuexConstructor {
1314 [ key : string ] :
1415 | Function
1516 | {
16- root : Boolean ;
17+ root : boolean ;
1718 handler : Function ;
1819 } ;
1920 } ;
2021 getters ?: {
2122 [ key : string ] : Function ;
2223 } ;
23- modules ?: Object ;
24+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
25+ modules ?: Record < string , any > ;
2426 plugins ?: Array < Function > ;
25- strict ?: Boolean ;
26- devtools ?: Boolean ;
27+ strict ?: boolean ;
28+ devtools ?: boolean ;
2729}
2830
2931interface MenuState {
30- version : String ;
31- zoom : Number ;
32- autolock : Number ;
33- useAutofill : Boolean ;
34- useHighContrast : Boolean ;
35- backupDisabled : Boolean ;
36- storageArea : String ;
32+ version : string ;
33+ zoom : number ;
34+ autolock : number ;
35+ useAutofill : boolean ;
36+ useHighContrast : boolean ;
37+ backupDisabled : boolean ;
38+ storageArea : string ;
3739}
3840
3941interface StyleState {
4042 style : {
41- timeout : Boolean ;
42- isEditing : Boolean ;
43- slidein : Boolean ;
44- slideout : Boolean ;
45- fadein : Boolean ;
46- fadeout : Boolean ;
47- show : Boolean ;
48- qrfadein : Boolean ;
49- qrfadeout : Boolean ;
50- notificationFadein : Boolean ;
51- notificationFadeout : Boolean ;
52- hotpDisabled : Boolean ;
43+ timeout : boolean ;
44+ isEditing : boolean ;
45+ slidein : boolean ;
46+ slideout : boolean ;
47+ fadein : boolean ;
48+ fadeout : boolean ;
49+ show : boolean ;
50+ qrfadein : boolean ;
51+ qrfadeout : boolean ;
52+ notificationFadein : boolean ;
53+ notificationFadeout : boolean ;
54+ hotpDisabled : boolean ;
5355 } ;
5456}
5557
5658interface AccountsState {
57- entries : IOTPEntry [ ] ;
58- encryption : IEncryption ;
59- OTPType : Number ;
60- shouldShowPassphrase : Boolean ;
61- sectorStart : Boolean ;
62- sectorOffset : Number ;
63- second : Number ;
64- notification : String ;
65- filter : Boolean ;
59+ entries : OTPEntryInterface [ ] ;
60+ encryption : EncryptionInterface ;
61+ OTPType : number ;
62+ shouldShowPassphrase : boolean ;
63+ sectorStart : boolean ;
64+ sectorOffset : number ;
65+ second : number ;
66+ notification : string ;
67+ filter : boolean ;
6668 siteName : ( string | null ) [ ] ;
67- showSearch : Boolean ;
68- exportData : { [ k : string ] : IOTPEntry } ;
69- exportEncData : { [ k : string ] : IOTPEntry } ;
69+ showSearch : boolean ;
70+ exportData : { [ k : string ] : OTPEntryInterface } ;
71+ exportEncData : { [ k : string ] : OTPEntryInterface } ;
7072 key : { enc : string ; hash : string } | null ;
71- wrongPassword : Boolean ;
73+ wrongPassword : boolean ;
7274}
7375
7476interface NotificationState {
7577 message : Array < string > ;
76- confirmMessage : String ;
77- messageIdle : Boolean ;
78- notification : String ;
78+ confirmMessage : string ;
79+ messageIdle : boolean ;
80+ notification : string ;
7981}
8082
8183interface BackupState {
82- dropboxEncrypted : Boolean ;
83- driveEncrypted : Boolean ;
84- oneDriveEncrypted : Boolean ;
85- dropboxToken : Boolean ;
86- driveToken : Boolean ;
87- oneDriveToken : Boolean ;
84+ dropboxEncrypted : boolean ;
85+ driveEncrypted : boolean ;
86+ oneDriveEncrypted : boolean ;
87+ dropboxToken : boolean ;
88+ driveToken : boolean ;
89+ oneDriveToken : boolean ;
8890}
0 commit comments