update artist search type

This commit is contained in:
Sayem Chowdhury 2021-03-03 01:47:32 +06:00
parent 09d1beb5d1
commit 8eff375dc7
2 changed files with 16 additions and 2 deletions

View File

@ -16,6 +16,16 @@ export interface artistType {
__TYPE__: 'artist';
}
export interface artistInfoTypeMinimal {
ART_ID: string;
ART_NAME: string;
ART_PICTURE: string;
NB_FAN: number;
LOCALES: [];
ARTIST_IS_DUMMY: boolean;
__TYPE__: 'artist';
}
export interface artistInfoType {
ART_ID: string; // "293585",
ART_NAME: string; // "Avicii",

View File

@ -1,5 +1,5 @@
import type {albumTracksType, albumType, albumTypeMinimal} from './album';
import type {artistType} from './artist';
import type {artistInfoTypeMinimal, artistType} from './artist';
import type {playlistInfo, playlistInfoMinimal} from './playlist';
import type {trackType} from './tracks';
@ -15,6 +15,10 @@ interface albumSearchType extends searchTypeCommon {
data: albumTypeMinimal[];
}
interface artistSearchType extends searchTypeCommon {
data: artistInfoTypeMinimal[];
}
interface playlistSearchType extends searchTypeCommon {
data: playlistInfoMinimal[];
}
@ -50,7 +54,7 @@ export interface searchType {
'LYRICS',
];
ALBUM: albumSearchType;
ARTIST: albumTracksType;
ARTIST: artistSearchType;
TRACK: albumTracksType;
PLAYLIST: playlistSearchType;
RADIO: albumTracksType;