aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/wrappers
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/core/wrappers')
-rw-r--r--client/src/app/core/wrappers/storage.service.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/core/wrappers/storage.service.ts b/client/src/app/core/wrappers/storage.service.ts
index ad3aca6b8..e0563c611 100644
--- a/client/src/app/core/wrappers/storage.service.ts
+++ b/client/src/app/core/wrappers/storage.service.ts
@@ -11,8 +11,8 @@ abstract class StorageService {
11 return StorageService.storageSub.asObservable().pipe(filter(val => keys ? keys.includes(val) : true)) 11 return StorageService.storageSub.asObservable().pipe(filter(val => keys ? keys.includes(val) : true))
12 } 12 }
13 13
14 getItem (key: string) { 14 getItem <T extends string> (key: string) {
15 return this.instance.getItem(key) 15 return this.instance.getItem(key) as T
16 } 16 }
17 17
18 setItem (key: string, data: any, notifyOfUpdate = true) { 18 setItem (key: string, data: any, notifyOfUpdate = true) {