Skip to content

Commit 67d1f6a

Browse files
authored
🤖 Merge PR DefinitelyTyped#73506 Make WebTorrent.get() async by @QuixThe2nd
1 parent f7307f0 commit 67d1f6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/webtorrent/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ declare namespace WebTorrent {
126126
torrentId: Torrent | string | Buffer,
127127
opts?: TorrentDestroyOptions,
128128
callback?: (err: Error | string) => void,
129-
): void;
129+
): Promise<void>;
130130

131131
destroy(callback?: (err: Error | string) => void): void;
132132
createServer(
@@ -137,7 +137,7 @@ declare namespace WebTorrent {
137137
readonly torrents: Torrent[];
138138

139139
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
140-
get(torrentId: Torrent | string | Buffer): Torrent | void;
140+
get(torrentId: Torrent | string | Buffer): Promise<Torrent | void>;
141141

142142
throttleDownload(rate: number): boolean | undefined;
143143

0 commit comments

Comments
 (0)