music-bot/@types/Downloader.d.ts
2024-03-27 21:44:03 +02:00

17 lines
308 B
TypeScript

type BaseResult = {
existing?: boolean,
artist: string,
song: string,
album: string,
ext: string,
}
type ExistingResult = {
existing: true
} & BaseResult
type DownloadedResult = {
filePath: string
} & BaseResult
export type DownloaderResult = ExistingResult | DownloadedResult;