Skip to content

no d.ts file for the /light version #7574

@tijnjh

Description

@tijnjh

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

Steps to reproduce

  1. make a blank typescript project
  2. install hls.js
  3. paste the following code
import Hls from 'hls.js/light';

Hls.isSupported()
Image
  1. and notice that isSupported is of type any and not type () => boolean

Expected behaviour

Image

as you can see, with the normal version, types work fine

What actually happened?

Image

it fails to find a declaration file, as the build script does not generate these files for the /light version

Image

Console output

not applicable

Chrome media internals output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions