mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #17333 from tdaines/hls.js-fix-version-property
[hls.js] Changed Hls.version property to return string instead of number
This commit is contained in:
@@ -3,6 +3,7 @@ import * as Hls from 'hls.js';
|
||||
if (Hls.isSupported()) {
|
||||
const video = <HTMLVideoElement> document.getElementById('video');
|
||||
const hls = new Hls();
|
||||
const version: string = Hls.version;
|
||||
hls.loadSource('http://www.streambox.fr/playlists/test_001/stream.m3u8');
|
||||
hls.attachMedia(video);
|
||||
hls.on(Hls.Events.MANIFEST_PARSED, () => {
|
||||
|
||||
Vendored
+1
-1
@@ -382,7 +382,7 @@ declare namespace Hls {
|
||||
/**
|
||||
* returns hls.js dist version number
|
||||
*/
|
||||
const version: number;
|
||||
const version: string;
|
||||
|
||||
interface Config {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user