-
-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #746 from hwangsihu/main
Update package and Makes env a little easier
- Loading branch information
Showing
12 changed files
with
117 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
declare module 'genius-lyrics-api' { | ||
interface SearchOptions { | ||
apiKey: string; | ||
title: string; | ||
artist?: string; | ||
optimizeQuery?: boolean; | ||
} | ||
interface SearchOptions { | ||
apiKey: string; | ||
title: string; | ||
artist?: string; | ||
optimizeQuery?: boolean; | ||
} | ||
|
||
interface Song { | ||
id: number; | ||
title: string; | ||
url: string; | ||
} | ||
interface Song { | ||
id: number; | ||
title: string; | ||
url: string; | ||
} | ||
|
||
interface LyricsOptions { | ||
title: string; | ||
artist: string; | ||
} | ||
interface LyricsOptions { | ||
title: string; | ||
artist: string; | ||
} | ||
|
||
interface AlbumArtOptions { | ||
title: string; | ||
artist: string; | ||
} | ||
interface AlbumArtOptions { | ||
title: string; | ||
artist: string; | ||
} | ||
|
||
interface SongByIdOptions { | ||
id: number; | ||
apiKey: string; | ||
} | ||
interface SongByIdOptions { | ||
id: number; | ||
apiKey: string; | ||
} | ||
|
||
export function search(options: SearchOptions): Promise<Song[]>; | ||
export function getSong(options: { id: number; apiKey: string }): Promise<Song>; | ||
export function getLyrics(options: LyricsOptions): Promise<string>; | ||
export function getAlbumArt(options: AlbumArtOptions): Promise<string>; | ||
export function getSongById(options: SongByIdOptions): Promise<Song>; | ||
export function searchSong(options: SearchOptions): Promise<Song[]>; | ||
export function search(options: SearchOptions): Promise<Song[]>; | ||
export function getSong(options: { id: number; apiKey: string }): Promise<Song>; | ||
export function getLyrics(options: LyricsOptions): Promise<string>; | ||
export function getAlbumArt(options: AlbumArtOptions): Promise<string>; | ||
export function getSongById(options: SongByIdOptions): Promise<Song>; | ||
export function searchSong(options: SearchOptions): Promise<Song[]>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters