Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.12 KB

classes.md

File metadata and controls

52 lines (34 loc) · 1.12 KB

Go Back to README

Classes

MusicResult

export class MusicResult {
  readonly artists: MusicArtist[];
  readonly albums: MusicAlbum[];
  readonly songs: MusicSong[];
  readonly source?: MusicSource;

  constructor(options: {
    artists?: MusicArtist[];
    albums?: MusicAlbum[];
    songs?: MusicSong[];
    source?: MusicSource;
  });

  getArtist(id: number): MusicArtist | undefined;
  getArtistAlbums(id: number): MusicAlbum[];
  getArtistSongs(id: number): MusicSong[];

  getAlbum(id: number): MusicAlbum | undefined;
  getAlbumSongs(id: number): MusicSong[];

  getSong(id: number): MusicSong | undefined;
}

Members

readonly artists: MusicArtist[]

readonly albums: MusicAlbum[]

readonly songs: MusicSong[]

readonly source: MusicSource | undefined

getArtist: (id: number) => MusicArtist | undefined

getArtistAlbums: (id: number) => MusicAlbum[]

getArtistSongs: (id: number) => MusicSong[]

getAlbum: (id: number) => MusicAlbum | undefined

getAlbumSongs: (id: number) => MusicSong[]

getSong: (id: number) => MusicSong | undefined