UNPKG

yandex-music

Version:

Creative and progressive Node.js framework for applications that interact with yandex music

28 lines 1.17 kB
import { YandexMusicClient } from "../client"; import { Union, List, ArtistBriefInfo, ArtistDirectAlbums, ArtistInterface } from "../interfaces"; export declare class Artist { private readonly client; constructor(client: YandexMusicClient); /** * Getting the artist/artists. * @param {List} ids The unique identifier of the artist or artists. * @returns Artist or Artists. */ get(ids: List): Promise<Array<ArtistInterface>>; /** * Getting information about the artist. * @param {Union} id The unique identifier of the artist. * @returns Information about the artist. */ info(id: Union): Promise<ArtistBriefInfo>; /** * Getting artist albums. * @param {Union} id The unique identifier of the artist. * @param {number} page Page number. * @param {number} page_size The number of albums per page. * @param {string} sort_by Parameter for sorting. * @returns Artist's Album list page. */ albums(id: Union, page?: number, page_size?: number, sort_by?: string): Promise<ArtistDirectAlbums>; } //# sourceMappingURL=index.d.ts.map