Better handle bigint

This commit is contained in:
2024-05-31 14:24:57 +08:00
parent 15ff42d8c4
commit 8437bf1436
36 changed files with 320 additions and 227 deletions

View File

@@ -10,14 +10,18 @@ export type TaskServerSocketData =
| {
type: "tasks";
tasks: Task[];
running: number[];
running: (number | bigint)[];
}
| { type: "ping" }
| { type: "pong" };
type EventMap = {
new_download_task: { gid: number; token: string; cfg?: DownloadConfig };
new_export_zip_task: { gid: number; cfg?: ExportZipConfig };
new_download_task: {
gid: number | bigint;
token: string;
cfg?: DownloadConfig;
};
new_export_zip_task: { gid: number | bigint; cfg?: ExportZipConfig };
};
export type TaskClientSocketData =