signal-desktop/ts/shims/storage.ts

11 lines
372 B
TypeScript
Raw Normal View History

2020-09-16 19:31:05 +00:00
// Matching window.storage.put API
// eslint-disable-next-line max-len
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
export function put(key: string, value: any): void {
window.storage.put(key, value);
}
2020-09-16 19:31:05 +00:00
export async function remove(key: string): Promise<void> {
await window.storage.remove(key);
}