-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.d.ts
46 lines (38 loc) · 934 Bytes
/
index.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
export as namespace ChunkUploadLib;
export = ChunkUpload;
declare class ChunkUpload {
constructor(props: ChunkUpload.Props);
digIn(Event: ChunkUpload.Event): void;
}
declare namespace ChunkUpload {
export interface Props {
path: string;
size: number;
fileName: string;
fileSize: number;
}
export type Event = (
file: File,
next: () => void,
retry: () => void,
unlink: (path: string) => void
) => void;
export interface File {
path: string;
headers: Header;
blob: Blob;
}
export interface Header {
"x-chunk-number": number;
"x-chunk-total-number": number;
"x-chunk-size": number;
"x-file-name": string;
"x-file-size": number;
"x-file-identity": string;
}
export interface Blob {
name: string;
type: string;
uri: string;
}
}