Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Conversation

@wimpykid719
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant