wrong Return Value type of client.get() in @types/webtorrent packages
TechQuery opened this issue · comments
South Drifted commented
What version of this package are you using?
@types/webtorrent@0.109.8
What operating system, Node.js, and npm version?
- OS: Windows 10 Pro 22H2
- Node.js: 18.x
- PNPM: 9.x
What happened?
Latest WebTorrent has an async client.get()
method:
Lines 231 to 233 in 41cb62b
but its Type Defination package has no Promise
type on the return value of client.get()
:
What did you expect to happen?
The Type Defination package has the same type of the Implement package.
Are you willing to submit a pull request to fix this bug?
I may submit a PR after this bug being confirmed by @webtorrent team.
Cas_ commented
yes, this is a bug in the @types/webtorrent
package, which isn't maintained by webtorrent, we have no control over it