5.8.7 • Published 6 months ago
@types/parse-torrent v5.8.7
Installation
npm install --save @types/parse-torrent
Summary
This package contains type definitions for parse-torrent (https://github.com/webtorrent/parse-torrent).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-torrent.
index.d.ts
// Type definitions for parse-torrent 5.8
// Project: https://github.com/webtorrent/parse-torrent
// Definitions by: Bazyli Brzóska <https://github.com/niieani>, Tomasz Łaziuk <https://github.com/tlaziuk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import MagnetUri = require('magnet-uri');
import * as ParseTorrentFile from 'parse-torrent-file';
declare const ParseTorrent: ParseTorrent.ParseTorrent;
declare namespace ParseTorrent {
interface ParseTorrent {
(torrent: string): MagnetUri.Instance;
(torrent: Buffer): MagnetUri.Instance | ParseTorrentFile.Instance;
(torrent: Instance | MagnetUri.Instance | ParseTorrentFile.Instance): Instance;
toMagnetURI: typeof MagnetUri.encode;
toTorrentFile: typeof ParseTorrentFile.encode;
remote(torrent: string | Buffer | Instance | MagnetUri.Instance | ParseTorrentFile.Instance | Blob, cb?: (err: Error, torrent?: Instance) => void): void;
}
interface Instance extends MagnetUri.Instance, ParseTorrentFile.Instance {
infoHash: string;
name?: string | undefined;
announce?: string[] | undefined;
urlList?: string[] | undefined;
}
}
export = ParseTorrent;
Additional Details
- Last updated: Thu, 08 Jul 2021 20:19:20 GMT
- Dependencies: @types/magnet-uri, @types/parse-torrent-file, @types/node
- Global values: none
Credits
These definitions were written by Bazyli Brzóska, and Tomasz Łaziuk.
5.8.7
6 months ago
5.8.6
7 months ago
5.8.5
8 months ago
5.8.4
3 years ago
5.8.3
5 years ago
5.8.2
6 years ago
5.8.1
7 years ago
5.8.0
7 years ago
0.0.28
8 years ago
0.0.27
8 years ago
0.0.26-alpha
8 years ago
0.0.25-alpha
8 years ago
0.0.24-alpha
8 years ago
0.0.23-alpha
8 years ago
0.0.22-alpha
8 years ago
0.0.21-alpha
8 years ago
0.0.20-alpha
8 years ago
0.0.15-alpha
8 years ago
0.0.14-alpha
8 years ago