use-last-fm
Version:
Stream your current playing song from last.fm as a React hook.
11 lines (10 loc) • 434 B
TypeScript
import { TrackImage, State } from './types';
/**
* Use Last.fm
* @param username The username of the last.fm user to track
* @param token Your API token
* @param interval Optional, this is the interval between each request
* @param imageSize The size of the image
*/
export declare function useLastFM(username: string, token: string, interval?: number, imageSize?: TrackImage['size']): State;
export * from './types';