From 7a486b97f0778e8327a3dc59b06bae344b174ddf Mon Sep 17 00:00:00 2001 From: Tyler Daines Date: Tue, 20 Jun 2017 11:45:39 -0700 Subject: [PATCH] Changed Hls.version property to return string instead of number --- types/hls.js/hls.js-tests.ts | 1 + types/hls.js/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/hls.js/hls.js-tests.ts b/types/hls.js/hls.js-tests.ts index e6d4a995f5..a8f7291044 100644 --- a/types/hls.js/hls.js-tests.ts +++ b/types/hls.js/hls.js-tests.ts @@ -3,6 +3,7 @@ import * as Hls from 'hls.js'; if (Hls.isSupported()) { const video = 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, () => { diff --git a/types/hls.js/index.d.ts b/types/hls.js/index.d.ts index 622fadd890..1911413c4f 100644 --- a/types/hls.js/index.d.ts +++ b/types/hls.js/index.d.ts @@ -382,7 +382,7 @@ declare namespace Hls { /** * returns hls.js dist version number */ - const version: number; + const version: string; interface Config { /**