]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/core/wrappers/storage.service.ts
Don't display account setup modal on signup
[github/Chocobozzz/PeerTube.git] / client / src / app / core / wrappers / storage.service.ts
index ad3aca6b8c031cd67849883ff4c7dedf9281c69e..e0563c61121424e4ae0d6a72588798f8b692a6bc 100644 (file)
@@ -11,8 +11,8 @@ abstract class StorageService {
     return StorageService.storageSub.asObservable().pipe(filter(val => keys ? keys.includes(val) : true))
   }
 
-  getItem (key: string) {
-    return this.instance.getItem(key)
+  getItem <T extends string> (key: string) {
+    return this.instance.getItem(key) as T
   }
 
   setItem (key: string, data: any, notifyOfUpdate = true) {