You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some helper types that are not properly exposed on the video.js namespace. For example, player.textTracks() does not have a proper type return, and in order for you to know that it returns TextTrackList, you'd need to do something like this:
The Request:
A user, I would like to import video.js types without having to go inside the dist directory. Using the above example as a guide, I would like to do something like this:
Description
There are some helper types that are not properly exposed on the video.js namespace. For example,
player.textTracks()
does not have a proper type return, and in order for you to know that it returnsTextTrackList
, you'd need to do something like this:The Request:
A user, I would like to import video.js types without having to go inside the
dist
directory. Using the above example as a guide, I would like to do something like this:For further information, please refer to the Slack thread discussing this: https://videojs.slack.com/archives/C43LGP955/p1733876135260749
Reduced test case
n/a
Steps to reproduce
videojs()
with necessary argumentsplayer.textTracks()
causes a Typescript error and that its return value isany
as a resultimport type { TextTrackList } from 'video.js'
and observe that this type is not foundErrors
No response
What version of Video.js are you using?
8.17.4
Video.js plugins used.
No response
What browser(s) including version(s) does this occur with?
All
What OS(es) and version(s) does this occur with?
All
The text was updated successfully, but these errors were encountered: