Closed MichalLytek closed 6 years ago
Released in 2.15.0
@protyposis
The same problem exist in the core typings:
export interface MediaTrackRole {
schemeIdUri: string;
value?: string;
id?: string;
[key: string]: string;
}
I have this error:
node_modules/bitmovin-player/types/core/PlayerAPI.d.ts:158:5 - error TS2411: Property 'value' of type 'string | undefined' is not assignable to string index type 'string'.
158 value?: string;
~~~~~
node_modules/bitmovin-player/types/core/PlayerAPI.d.ts:159:5 - error TS2411: Property 'id' of type 'string | undefined' is not assignable to string index type 'string'.
159 id?: string;
~~
node_modules/bitmovin-player/types/core/PlayerConfigAPI.d.ts:1027:5
- error TS2411: Property 'receiverStylesheetUrl' of type 'string | undefined' is not assignable to string index type 'string'.
1027 receiverStylesheetUrl?: string;
~~~~~~~~~~~~~~~~~~~~~
And there's no github repo for bitmovin-player
package 😕
The error:
is located in
bitmovin-player-ui/src/ts/player.d.ts (678,7)
:This is because in
strictNullChecks
mode type ofvalue
andid
evaluate tostring | undefined
which is incompatible with[key: string]: string
index signature. It should be changed to[key: string]: string | undefined;
ifid
andvalue
might be undefined.