add optional limit to getByUrl signature

This commit is contained in:
hazycora
2023-09-17 08:46:59 -04:00
parent 9147538229
commit 0b45994b50

View File

@@ -84,7 +84,7 @@ export interface AlbumGetByUrlResponse {
export interface Streamer {
hostnames: string[]
search(query: string, limit: number): Promise<SearchResults>
getTypeFromUrl(url: string): ItemType
getTypeFromUrl: ((url: string) => ItemType) | ((url: string, limit?: number) => ItemType)
getByUrl(url: string): Promise<GetByUrlResponse>
disconnect?(): Promise<void>
}