|
@@ -7,7 +7,7 @@ export class AppStorageHelper {
|
|
* @param key
|
|
* @param key
|
|
* @param value
|
|
* @param value
|
|
*/
|
|
*/
|
|
- public static save(key: string, value: string|undefined) {
|
|
|
|
|
|
+ public static save<T>(key: string, value: T|undefined) {
|
|
PersistentStorage.persistProp(key, value)
|
|
PersistentStorage.persistProp(key, value)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -16,7 +16,7 @@ export class AppStorageHelper {
|
|
* @param key
|
|
* @param key
|
|
* @returns
|
|
* @returns
|
|
*/
|
|
*/
|
|
- public static get(key: string):string|undefined {
|
|
|
|
- return AppStorage.get<string>(key)
|
|
|
|
|
|
+ public static get<T>(key: string):T|undefined {
|
|
|
|
+ return AppStorage.get<T>(key)
|
|
}
|
|
}
|
|
}
|
|
}
|