summary refs log tree commit diff
path: root/src/util/Storage.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-28 21:19:19 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-28 21:19:19 +0200
commit614d8f14fa2bac5c4f4357d51b4df527bea93c19 (patch)
tree31c97a8c2bc2c73a9cf35a2fe75a15535bde86e7 /src/util/Storage.ts
parentUpdate attachments.ts (diff)
downloadserver-614d8f14fa2bac5c4f4357d51b4df527bea93c19.tar.xz
:sparkles: attachments
Diffstat (limited to 'src/util/Storage.ts')
-rw-r--r--src/util/Storage.ts5
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;