1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 02:03:39 +00:00

convert more service abstractions

This commit is contained in:
Kyle Spearrin
2018-02-10 10:53:07 -05:00
parent 8d4799a0a2
commit 6c3f0a538f
3 changed files with 13 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
export interface StorageService {
get<T>(key: string): Promise<T>;
save(key: string, obj: any): Promise<any>;
remove(key: string): Promise<any>;
export abstract class StorageService {
get: <T>(key: string) => Promise<T>;
save: (key: string, obj: any) => Promise<any>;
remove: (key: string) => Promise<any>;
}