-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtypes.ts
More file actions
36 lines (32 loc) · 745 Bytes
/
types.ts
File metadata and controls
36 lines (32 loc) · 745 Bytes
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
/*
* Vencord, a Discord client mod
* Copyright (c) 2026 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
export interface ChunkMeta {
type: "FileSplitterChunk";
index: number;
total: number;
originalName: string;
originalSize: number;
timestamp: number;
}
export interface ChunkData extends ChunkMeta {
url: string;
channelId: string;
messageId: string;
}
export interface ChunkEntry {
chunks: ChunkData[];
lastUpdated: number;
}
export interface MergedResult {
key: string;
originalName: string;
isImage: boolean;
mimeType: string;
status: "pending" | "loading" | "ready" | "error";
blob?: Blob;
objectUrl?: string;
error?: string;
}