update track search type

This commit is contained in:
Sayem Chowdhury 2021-03-03 01:54:17 +06:00
parent 8eff375dc7
commit 605a89e831

View File

@ -1,4 +1,4 @@
import type {albumTracksType, albumType, albumTypeMinimal} from './album';
import type {albumType, albumTypeMinimal} from './album';
import type {artistInfoTypeMinimal, artistType} from './artist';
import type {playlistInfo, playlistInfoMinimal} from './playlist';
import type {trackType} from './tracks';
@ -23,6 +23,10 @@ interface playlistSearchType extends searchTypeCommon {
data: playlistInfoMinimal[];
}
export interface trackSearchType extends searchTypeCommon {
data: trackType[];
}
export interface discographyType {
data: albumType[];
count: number; // 109,
@ -55,11 +59,11 @@ export interface searchType {
];
ALBUM: albumSearchType;
ARTIST: artistSearchType;
TRACK: albumTracksType;
TRACK: trackSearchType;
PLAYLIST: playlistSearchType;
RADIO: albumTracksType;
SHOW: albumTracksType;
USER: albumTracksType;
LIVESTREAM: albumTracksType;
CHANNEL: albumTracksType;
RADIO: trackSearchType;
SHOW: trackSearchType;
USER: trackSearchType;
LIVESTREAM: trackSearchType;
CHANNEL: trackSearchType;
}