music-bot/@types/Downloader.d.ts
2024-07-24 18:07:20 +03:00

18 lines
328 B
TypeScript

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