File tree 3 files changed +4
-4
lines changed
libs/vue-route-guard/src/lib
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -87,5 +87,5 @@ module.exports = {
87
87
} ,
88
88
} ,
89
89
} ,
90
- ] ,
90
+ ]
91
91
} ;
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export function getVueVersion(app: typeof Vue): number {
38
38
export function isStorageAvailable ( storage : StorageType ) : boolean {
39
39
const storageValue = window [ storage ] ;
40
40
if (
41
- ! ! storageValue ||
41
+ ! storageValue ||
42
42
typeof storageValue !== 'object' ||
43
43
typeof ( storageValue as Storage ) . setItem !== 'function' ||
44
44
typeof ( storageValue as Storage ) . removeItem !== 'function'
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ export function setupGuard(options: GuardConfig) {
14
14
return new Guard ( options , packageKey ) ;
15
15
}
16
16
17
- export function useGuard ( ) {
18
- return Vue . inject ( packageKey ) ;
17
+ export function useGuard ( ) : Guard {
18
+ return Vue . inject ( packageKey ) as Guard ;
19
19
}
You can’t perform that action at this time.
0 commit comments