// Copyright 2019 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import type { StorageAccessType } from '../types/Storage.d'; // Matching window.storage.put API export async function put( key: K, value: StorageAccessType[K] ): Promise { await window.storage.put(key, value); } export async function remove(key: keyof StorageAccessType): Promise { await window.storage.remove(key); }