video-dev / hls.js

HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
https://hlsjs.video-dev.org/demo
Other
15.02k stars 2.59k forks source link

ES Module import types are not correct #6675

Open scottsmith-1 opened 2 months ago

scottsmith-1 commented 2 months ago

What version of Hls.js are you using?

1.5.15

What browser (including version) are you using?

Brave 1.69.160

What OS (including version) are you using?

Ubuntu 24.04.1

Test stream

https://github.com/scottsmith-1/hls-js

Configuration

{}

Additional player setup steps

No response

Checklist

Steps to reproduce

https://github.com/scottsmith-1/hls-js Project repro

View the screenshot for a basic .js Follow the steps in the README.md to see the fix

Expected behaviour

Types are determined correctly by vscode and for typescript users

What actually happened?

Types are wrong, follow links in README for a full description of what is happening

Console output

Logs are fine. Only a static testing issue

Chrome media internals output

No response

robwalch commented 2 months ago