no d.ts file for the /light version
Open
Nobody has claimed this yet.
light-build
Revisit-at-later-release-cycle
TypeScript
- Dominant language
- TypeScript
- Stars
- 16.9k
- Forks
- 2.8k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 27
Description
What version of Hls.js are you using?
1.6.13
What browser (including version) are you using?
firefox 143
What OS (including version) are you using?
macos tahoe
Test stream
No response
Configuration
not applicable
Additional player setup steps
No response
Checklist
- The issue observed is not already reported by searching on Github under https://github.com/video-dev/hls.js/issues
- The issue occurs in the stable client (latest release) on https://hlsjs.video-dev.org/demo and not just on my page
- The issue occurs in the latest client (main branch) on https://hlsjs-dev.video-dev.org/demo and not just on my page
- The stream has correct Access-Control-Allow-Origin headers (CORS)
- There are no network errors such as 404s in the browser console when trying to play the stream
Steps to reproduce
- make a blank typescript project
- install
hls.js - paste the following code
import Hls from 'hls.js/light';
Hls.isSupported()
- and notice that isSupported is of type
anyand not type() => boolean
Expected behaviour
as you can see, with the normal version, types work fine
What actually happened?
it fails to find a declaration file, as the build script does not generate these files for the /light version
Console output
not applicable
Chrome media internals output
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the normal Hls.js entry point with the /light entry point and inspect the build script that generates declaration files. Verify how TypeScript resolves the normal import versus hls.js/light, then ensure the light version exposes the expected declarations and test the blank TypeScript project reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100