We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7307f0 commit 67d1f6aCopy full SHA for 67d1f6a
types/webtorrent/index.d.ts
@@ -126,7 +126,7 @@ declare namespace WebTorrent {
126
torrentId: Torrent | string | Buffer,
127
opts?: TorrentDestroyOptions,
128
callback?: (err: Error | string) => void,
129
- ): void;
+ ): Promise<void>;
130
131
destroy(callback?: (err: Error | string) => void): void;
132
createServer(
@@ -137,7 +137,7 @@ declare namespace WebTorrent {
137
readonly torrents: Torrent[];
138
139
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
140
- get(torrentId: Torrent | string | Buffer): Torrent | void;
+ get(torrentId: Torrent | string | Buffer): Promise<Torrent | void>;
141
142
throttleDownload(rate: number): boolean | undefined;
143
0 commit comments