add optional limit to getByUrl signature

This commit is contained in:
hazycora 2023-09-17 07:46:59 -05:00
parent 9147538229
commit 0b45994b50
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E

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>
}