music-bot/@types/Downloader.d.ts

18 lines
328 B
TypeScript
Raw Normal View History

2024-03-27 20:44:03 +01:00
type BaseResult = {
existing?: boolean,
artist: string,
song: string,
album: string,
2024-03-27 20:44:03 +01:00
ext: string,
}
type ExistingResult = {
existing: true
} & BaseResult
type DownloadedResult = {
filePath: string,
temp?: boolean
2024-03-27 20:44:03 +01:00
} & BaseResult
export type DownloaderResult = ExistingResult | DownloadedResult;