Dashjs3.0.1 OfflineStreamEvent missing in typings index.d.ts
Created by: jepiqueau
Environment
- [] The MPD passes the DASH-IF Conformance Tool on https://conformance.dashif.org/
- [] The stream has correct Access-Control-Allow-Origin headers (CORS)
- [] There are no network errors such as 404s in the browser console when trying to play the stream
- [] The issue observed is not mentioned on https://github.com/Dash-Industry-Forum/dash.js/wiki/FAQ
- [] The issue occurs in the latest reference client on http://reference.dashif.org/dash.js/ and not just on my page
- Link to playable MPD file:
- Dash.js version: 3.1.0
- Browser name/version: Google Chrome Version 81.0.4044.138 (Build officiel) (64 bits)
- OS name/version: Windows 10 64bit
Steps to reproduce
- Please provide clear steps to reproduce your problem
- If the bug is intermittent, give a rough frequency if possible
Observed behaviour
When building a typescript component using dash.js i got the following error
Console output
TypeScript
Cannot find name 'OfflineStreamEvent'
./node_modules/dashjs/build/typings/index.d.ts
on(type: MetricChangedEvent['type'], listener: (e: MetricChangedEvent) => void, scope?: object): void;
on(type: OfflineStreamEvent['type'], listener: (e: OfflineStreamEvent) => void, scope?: object): void;
on(type: PeriodSwitchEvent['type'], listener: (e: PeriodSwitchEvent) => void, scope?: object): void;
This is not happening with dashjs@3.0.3