UNPKG

ultra-lyrics

Version:

Lyrics Fetcher

8 lines (7 loc) 456 B
import { Song, UltraLyricsFunctionReturnType } from '..'; /** * Function to get lyrics from Genius.com * @param {number | ISearchResults[0]} - ID of the song or an elemeny of the array of SearchResults * @returns {Promise<UltraLyricsFunctionReturnType<{ error: null | Error, data: string }>> - The promise that resolves to the lyrics */ export declare const getLyrics: (param: number | Partial<Song>) => Promise<UltraLyricsFunctionReturnType<string>>;