webtorrent/parse-torrent

Incorrect parseTorrent return types

macrespo42 opened this issue · 1 comments

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

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