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