Migrate textsecure to eslint

Co-authored-by: Chris Svenningsen <chris@carbonfive.com>
This commit is contained in:
Sidney Keese 2020-09-24 14:53:21 -07:00 committed by Josh Perez
parent b5df9b4067
commit 7b6d8f55d6
24 changed files with 706 additions and 299 deletions

View file

@ -1,5 +1,4 @@
// tslint:disable no-default-export
/* eslint-disable @typescript-eslint/no-explicit-any */
import utils from './Helpers';
// Default implmentation working with localStorage
@ -33,15 +32,15 @@ export interface StorageInterface {
const Storage = {
impl: localStorageImpl as StorageInterface,
put(key: string, value: any) {
put(key: string, value: unknown): Promise<void> | void {
return Storage.impl.put(key, value);
},
get(key: string, defaultValue: any) {
get(key: string, defaultValue: unknown): Promise<unknown> {
return Storage.impl.get(key, defaultValue);
},
remove(key: string) {
remove(key: string): Promise<void> | void {
return Storage.impl.remove(key);
},
};