From 8fd7686963277f75832d71dfd3d3532789bf11cb Mon Sep 17 00:00:00 2001 From: Arkadiusz Babiarz Date: Wed, 11 Sep 2019 16:16:33 +0200 Subject: [PATCH] Fix type for hls.js audio track (#38241) --- types/hls.js/index.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/types/hls.js/index.d.ts b/types/hls.js/index.d.ts index 8e6e6fa3a5..cf7dbc9b12 100644 --- a/types/hls.js/index.d.ts +++ b/types/hls.js/index.d.ts @@ -4,6 +4,7 @@ // Johan Brook // Adrián Caballero // Alexey I. Berezin +// Arkadiusz Babiarz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 @@ -352,6 +353,15 @@ declare namespace Hls { error?: CustomLogger; } + interface AudioTrack { + buffer: SourceBuffer; + container: string; + codec: string; + id: string; + initSegment?: Uint8Array; + levelCodec: string; + } + interface Config { /** * (default: false)