From 0b45994b50dfb17e7e8594a2145dc112e4ecde1a Mon Sep 17 00:00:00 2001 From: hazycora Date: Sun, 17 Sep 2023 07:46:59 -0500 Subject: [PATCH] add optional limit to getByUrl signature --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index b7dc163..6975839 100644 --- a/src/types.ts +++ b/src/types.ts @@ -84,7 +84,7 @@ export interface AlbumGetByUrlResponse { export interface Streamer { hostnames: string[] search(query: string, limit: number): Promise - getTypeFromUrl(url: string): ItemType + getTypeFromUrl: ((url: string) => ItemType) | ((url: string, limit?: number) => ItemType) getByUrl(url: string): Promise disconnect?(): Promise }