@musicorum/lastfm
Version:
Fully typed [Last.fm](https://last.fm) api client library written and made for Typescript!
11 lines (10 loc) • 613 B
TypeScript
import { LastClient } from '../LastClient.js';
import { GetFormattedResponse, LastfmResponses } from '../types/responses.js';
import { LastfmTrackInfoParams } from '../types/packages/track.js';
export declare class Track {
private client;
constructor(client: LastClient);
getInfo(trackName: string, artistName: string, params?: LastfmTrackInfoParams): Promise<GetFormattedResponse<LastfmResponses['track.getInfo']> | undefined>;
love(trackName: string, artistName: string, sessionKey: string): Promise<void>;
unlove(trackName: string, artistName: string, sessionKey: string): Promise<void>;
}