-
Notifications
You must be signed in to change notification settings - Fork 1
/
files.d.ts
50 lines (27 loc) · 2.22 KB
/
files.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// @themost-framework 2.0 Codename Blueshift Copyright (c) 2017-2025, THEMOST LP All rights reserved
import {HttpContext} from "./context";
export declare abstract class FileStorage {
abstract copyFrom(context: HttpContext, src: string, attrs: any, callback: (err?: Error, res?: any) => void): void;
abstract copyTo(context: HttpContext, item: any, dest: string, callback: (err?: Error, res?: any) => void): void;
abstract resolvePhysicalPath(context: HttpContext, item: any, callback: (err?: Error, res?: any) => void): void;
abstract resolveUrl(context: HttpContext, item: any, callback: (err?: Error, res?: any) => void): void;
abstract createReadStream(context: HttpContext, item: any, callback: (err?: Error, res?: any) => void): void;
abstract init(callback: (err?: Error, res?: any) => void): void;
abstract find(context: HttpContext, query: any, callback: (err?: Error, res?: any) => void): void;
abstract findOne(context: HttpContext, query: any, callback: (err?: Error, res?: any) => void): void;
abstract remove(context: HttpContext, item: any, callback: (err?: Error, res?: any) => void): void;
}
export declare class AttachmentFileSystemStorage extends FileStorage {
constructor(physicalPath: string);
root: string;
copyFrom(context: HttpContext, src: string, attrs: any, callback: (err?: Error, res?: any) => void): void;
copyTo(context: HttpContext, item: any, dest: string, callback: (err?: Error, res?: any) => void): void;
createReadStream(context: HttpContext, item: any, callback: (err?: Error, res?: any) => void): void;
find(context: HttpContext, query: any, callback: (err?: Error, res?: any) => void): void;
findOne(context: HttpContext, query: any, callback: (err?: Error, res?: any) => void): void;
init(callback: (err?: Error, res?: any) => void): void;
remove(context: HttpContext, item: any, callback: (err?: Error, res?: any) => void): void;
resolvePhysicalPath(context: HttpContext, item: any, callback: (err?: Error, res?: any) => void): void;
resolveUrl(context: HttpContext, item: any, callback: (err?: Error, res?: any) => void): void;
exists(context: HttpContext, query: any, callback: (err?: Error, res?: any) => void): void;
}