Skip to content

Commit

Permalink
docs: reverted removal of ts expect error directive
Browse files Browse the repository at this point in the history
  • Loading branch information
ygit committed Dec 16, 2024
1 parent abba8e0 commit 50cf404
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/hms-video-store/src/connection/HMSConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export default abstract class HMSConnection {
const iceTransport = transmitter.transport.iceTransport;

const handleSelectedCandidate = () => {
// @ts-expect-error
if (typeof iceTransport.getSelectedCandidatePair === 'function') {
// @ts-expect-error
this.selectedCandidatePair = iceTransport.getSelectedCandidatePair();
Expand All @@ -161,7 +162,9 @@ export default abstract class HMSConnection {
}
};

// @ts-expect-error
if (typeof iceTransport.onselectedcandidatepairchange === 'function') {
// @ts-expect-error
iceTransport.onselectedcandidatepairchange = handleSelectedCandidate;
}
handleSelectedCandidate();
Expand Down

0 comments on commit 50cf404

Please sign in to comment.