PlaybackStatus type definition problem

I have the following code:

private onVideoStatusUpdate = (videoStatus: PlaybackStatus) => {
    this.setState(prevState => ({
        videoStatus.playableDurationMillis / videoStatus.durationMillis

Typescript complains saying

Property ‘playableDurationMillis’ does not exist on type ‘PlaybackStatus’.

Property ‘durationMillis’ does not exist on type ‘PlaybackStatus’.

How can I solve this?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.