microlinkhq / youtube-dl-exec

A simple Node.js wrapper for youtube-dl/yt-dlp.
MIT License
423 stars 75 forks source link

fix(types): fix return type of youtubeDl function #211

Closed simonegosetto closed 1 month ago

simonegosetto commented 1 month ago

for issue #210

kylerichter commented 1 month ago

This breaks TypeScript projects expecting only Payload but was released as a patch?

simonegosetto commented 1 month ago

hello @kylerichter, there is at least one case where the function in question returns a string and not a Payload, so the Typescript types have simply been aligned, if your code gives an error just cast the result to the right type you expect