[BUG] Typings need updating #56
Labels
bug
Something isn't working
Groomed
JWP team has reviewed the ticket and deemed it necessary
native-sdk-issue
Work is blocked by native SDK
Describe the bug
The
loadPlaylist
method in the JWPlayer React Native SDK is using an incorrect type for its parameter. Currently, it usesPlaylistItem[]
, but it should be usingJwPlaylistItem[]
Steps to reproduce the behavior:
loadPlaylist
method definitionPlaylistItem[]
instead ofJwPlaylistItem[]
Expected behavior
The
loadPlaylist
method should accept a parameter of typeJwPlaylistItem[]
whenforceLegacyConfig
is false or not set. WhenforceLegacyConfig
is true, it should acceptPlaylistItem[]
.Screenshots / Visual evidence
N/A (This is a TypeScript definition issue, no visual evidence required)
Desktop (please complete the following information):
N/A (This is a TypeScript definition issue, not a build issue)
Device(s) affected
All devices using the TypeScript definitions for the JWPlayer React Native SDK
Additional context
The current type definitions show:
It should be:
The text was updated successfully, but these errors were encountered: