From c6b4b7b7d1f4697c54284be70dd1087c1a1ac120 Mon Sep 17 00:00:00 2001 From: South Drifted Date: Thu, 16 May 2024 01:50:28 +0800 Subject: [PATCH] fix: Return Value type of WebTorrent client.get() --- types/webtorrent/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/webtorrent/index.d.ts b/types/webtorrent/index.d.ts index ad40714b8decfe..25f63abbb03221 100644 --- a/types/webtorrent/index.d.ts +++ b/types/webtorrent/index.d.ts @@ -133,7 +133,7 @@ declare namespace WebTorrent { readonly torrents: Torrent[]; // eslint-disable-next-line @typescript-eslint/no-invalid-void-type - get(torrentId: Torrent | string | Buffer): Torrent | void; + get(torrentId: Torrent | string | Buffer): Promise; readonly downloadSpeed: number;