Agora-RTC-React
Agora-RTC-React copied to clipboard
fix: add type of createScreenVideoTrack enable and disable
Return wrong type when I execute the following code.
createScreenVideoTrack({ encoderConfig: '480p_1' }, 'disable')()
I just want to return only ILocalVideoTrack but this code of type tracks is ILocalVideoTrack | [ILocalVideoTrack, ILocalAudioTrack]
I think that's wrong because I seted withAudio: disable so never return ILocalAudioTrack so I added two type of type for enable and disable.
This is my first pull request to oss so might be something mistake or exist any other solution then please let me know.