Skip to content

Commit

Permalink
chore: fix missing type
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofMoch committed Nov 2, 2023
1 parent 4c5e538 commit ffc2dc6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/types/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,15 @@ export type OnAudioFocusChangedData = Readonly<{

export type OnBufferData = Readonly<{isBuffering: boolean}>;

export type OnBandwidthUpdateData = Readonly<{
bitrate: number;
width: number;
height: number;
trackId: number;
}>;
export type OnBandwidthUpdateData = Readonly<
| {
bitrate: number;
width: number;
height: number;
trackId: number;
}
| {bitrate: number}
>;

export interface ReactVideoEvents {
onAudioBecomingNoisy?: () => void; //Android, iOS
Expand Down

0 comments on commit ffc2dc6

Please sign in to comment.