(storage: ProfilesStorageLike = localStorage)
| 63 | } |
| 64 | |
| 65 | export function loadProfilesData(storage: ProfilesStorageLike = localStorage): ProfilesData { |
| 66 | return parseProfilesDataJson(storage.getItem(STORAGE_KEYS.profiles)); |
| 67 | } |
| 68 | |
| 69 | export function saveProfilesData(data: ProfilesData, storage: ProfilesStorageLike = localStorage): void { |
| 70 | storage.setItem(STORAGE_KEYS.profiles, serializeProfilesData(data)); |
no test coverage detected