From 22a25ded9f7d9c9a96cce8d1bc12475ca0434201 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 9 Feb 2022 17:58:07 +0100 Subject: Major update --- node_modules/genius-lyrics/dist/Songs/Client.d.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 node_modules/genius-lyrics/dist/Songs/Client.d.ts (limited to 'node_modules/genius-lyrics/dist/Songs/Client.d.ts') diff --git a/node_modules/genius-lyrics/dist/Songs/Client.d.ts b/node_modules/genius-lyrics/dist/Songs/Client.d.ts new file mode 100644 index 0000000..00b54ae --- /dev/null +++ b/node_modules/genius-lyrics/dist/Songs/Client.d.ts @@ -0,0 +1,23 @@ +import { Client } from "../"; +import { Song } from "./Song"; +export interface SongSearchOptions { + sanitizeQuery: boolean; +} +export declare class SongsClient { + readonly client: Client; + /** + * @example const SongsClient = new Genius.Songs.Client(key); + */ + constructor(client: Client); + /** + * Searches for songs for the provided query (Key is optional) + * @example const SearchResults = await SongsClient.search("faded"); + */ + search(query: string, options?: Partial): Promise; + /** + * Fetches the Song using the provided ID (Requires Key) + * @example const Song = await SongsClient.get(3276244); + */ + get(id: number): Promise; + sanitizeQuery(query: string): string; +} -- cgit