TikTok-Live-Studio / src /types.ts
fnorby777's picture
Initial clean commit
076bd51
Raw
History Blame Contribute Delete
551 Bytes
import type { spawn } from "bun";
export type Status =
| "waiting"
| "downloading"
| "completed"
| "stopped"
| "error";
export interface Download {
id: string;
user: string;
status: Status;
process?: ReturnType<typeof spawn>;
startTime: Date;
outputPath: string;
}
export interface StatusChangeEvent {
id: string;
user: string;
status: Status;
}
export interface Config {
commandPrefix: string;
outputPath: string;
userListFile: string;
enableChat?: boolean;
chatFormat?: "json" | "txt" | "srt"| "ass";
autoOverlay?: boolean;
}