webtorrent / parse-torrent

Parse a torrent identifier (magnet uri, .torrent file, info hash)
https://webtorrent.io
MIT License
441 stars 82 forks source link

infoHash may be undefined in types #105

Open conartist6 opened 3 years ago

conartist6 commented 3 years ago

The docs say infoHash is guaranteed to be present in the response from parseTorrent(), but the typedefs permit it to be undefined in certain overloads.

conartist6 commented 3 years ago

https://github.com/DefinitelyTyped/DefinitelyTyped/pull/55768