From 8b50e02d218372520eb4727865fc9ae799c789a1 Mon Sep 17 00:00:00 2001 From: Lstmxx <36261034+Lstmxx@users.noreply.github.com> Date: Thu, 24 Oct 2024 06:48:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#70852=20fix:=20add?= =?UTF-8?q?=20missing=20types=20in=20webtorrent=20by=20@Lstmxx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/webtorrent/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/webtorrent/index.d.ts b/types/webtorrent/index.d.ts index ad40714b8decfe..f43437269558aa 100644 --- a/types/webtorrent/index.d.ts +++ b/types/webtorrent/index.d.ts @@ -13,14 +13,19 @@ declare namespace WebTorrent { (config?: Options): Instance; WEBRTC_SUPPORT: boolean; } + interface Options { maxConns?: number | undefined; nodeId?: string | Buffer | undefined; peerId?: string | Buffer | undefined; tracker?: boolean | {} | undefined; dht?: boolean | {} | undefined; + lsd?: boolean | undefined; webSeeds?: boolean | undefined; utp?: boolean | undefined; + blocklist?: (string | Array) | undefined; + downloadLimit?: number | undefined; + uploadLimit?: number | undefined; } interface ServerAddress {