Migrate textsecure to eslint
Co-authored-by: Chris Svenningsen <chris@carbonfive.com>
This commit is contained in:
parent
b5df9b4067
commit
7b6d8f55d6
24 changed files with 706 additions and 299 deletions
|
@ -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);
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue