add radio type

This commit is contained in:
Sayem Chowdhury 2021-03-03 02:10:07 +06:00
parent a46cc2401d
commit 970906a77c
2 changed files with 13 additions and 1 deletions

7
src/types/radio.ts Normal file
View File

@ -0,0 +1,7 @@
export interface radioType {
RADIO_ID: string; // '39081'
RADIO_PICTURE: string; // '69518b4d1cf2942171e90546ae1ad81a'
TITLE: string; // 'Axe Forro'
TAGS: string[];
__TYPE__: 'radio';
}

View File

@ -3,6 +3,7 @@ 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';
import type {channelSearchType} from './channel'; import type {channelSearchType} from './channel';
import type {radioType} from './radio';
interface searchTypeCommon { interface searchTypeCommon {
count: number; count: number;
@ -32,6 +33,10 @@ interface liveSearchType extends searchTypeCommon {
data: unknown[]; data: unknown[];
} }
interface radioSearchType extends searchTypeCommon {
data: radioType[];
}
export interface discographyType { export interface discographyType {
data: albumType[]; data: albumType[];
count: number; // 109, count: number; // 109,
@ -66,7 +71,7 @@ export interface searchType {
ARTIST: artistSearchType; ARTIST: artistSearchType;
TRACK: trackSearchType; TRACK: trackSearchType;
PLAYLIST: playlistSearchType; PLAYLIST: playlistSearchType;
RADIO: trackSearchType; RADIO: radioSearchType;
SHOW: trackSearchType; SHOW: trackSearchType;
USER: trackSearchType; USER: trackSearchType;
LIVESTREAM: liveSearchType; LIVESTREAM: liveSearchType;