webtorrent / parse-torrent

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

Incorrect parseTorrent return types #184

Closed macrespo42 closed 7 months ago

macrespo42 commented 8 months ago

What version of this package are you using? "@types/parse-torrent": "^5.8.7" "parse-torrent": "^11.0.16",

What operating system, Node.js, and npm version? Os: Macos Sonoma Nodejs version: v21.5.0 npm version: 10.2.4

What happened?

image

What did you expect to happen? The return types indicated is MagnetUri.instance or ParseTorrentFile.instance but the function return me a promise instead

ThaUnknown commented 7 months ago

thats a @types/parse-torrent issue, not us, we don't maintain that package