mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 02:42:45 +00:00
chore: update dependencies and update AWS S3 lib to v3
This commit is contained in:
@@ -44,13 +44,13 @@ export interface StorageBase {
|
||||
*/
|
||||
exists(path: string): Promise<boolean>;
|
||||
|
||||
send(p: string, res: Response): void;
|
||||
send(p: string, res: Response): Promise<void>;
|
||||
|
||||
/**
|
||||
* Read the content of a file
|
||||
* @param path the path to the file
|
||||
*/
|
||||
read(path: string): Readable;
|
||||
read(path: string): Promise<Readable>;
|
||||
|
||||
fileInfo(path: string): Promise<{
|
||||
size: number | undefined;
|
||||
@@ -115,7 +115,7 @@ export interface StorageBase {
|
||||
*/
|
||||
fileTransformer?: (p: string) => Transform;
|
||||
}
|
||||
): archiver.Archiver;
|
||||
): Promise<archiver.Archiver>;
|
||||
|
||||
/**
|
||||
* Create a directory
|
||||
|
||||
Reference in New Issue
Block a user