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

17 lines
308 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
} & BaseResult
export type DownloaderResult = ExistingResult | DownloadedResult;