Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#70852 fix: add missing types in webtorrent…
Browse files Browse the repository at this point in the history
… by @Lstmxx
  • Loading branch information
Lstmxx authored Oct 23, 2024
1 parent 0620f0c commit 8b50e02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/webtorrent/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | { start: string; end: string }>) | undefined;
downloadLimit?: number | undefined;
uploadLimit?: number | undefined;
}

interface ServerAddress {
Expand Down

0 comments on commit 8b50e02

Please sign in to comment.