diff options
Diffstat (limited to 'src/util/Storage.ts')
-rw-r--r-- | src/util/Storage.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/Storage.ts b/src/util/Storage.ts index 391afa83..f8b09e71 100644 --- a/src/util/Storage.ts +++ b/src/util/Storage.ts @@ -1,8 +1,9 @@ import { FileStorage } from "./FileStorage"; export interface Storage { - set(path: string, data: any): Promise<void>; - get(path: string): Promise<any>; + set(path: string, data: Buffer): Promise<void>; + get(path: string): Promise<Buffer | null>; + delete(path: string): Promise<void>; } var storage: Storage; |