3 changed files with 13 additions and 14 deletions
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
export interface LockService { |
||||
checkLock(): Promise<void>; |
||||
lock(): Promise<void>; |
||||
export abstract class LockService { |
||||
checkLock: () => Promise<void>; |
||||
lock: () => Promise<void>; |
||||
} |
||||
|
||||
@ -1,5 +1,5 @@
@@ -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>; |
||||
} |
||||
|
||||
Loading…
Reference in new issue