Skip to content

Commit c478a52

Browse files
committed
fix: lint, update lockfile
1 parent 076764a commit c478a52

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

package-lock.json

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/polyfill/MediaStream.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class MediaStream extends EventTarget {
137137
return this.#id
138138
}
139139

140-
addTrack (track) {
140+
addTrack (track): void {
141141
this.#tracks.add(track)
142142
this.dispatchEvent(new MediaStreamTrackEvent('addtrack', { track }))
143143
}

src/polyfill/RTCPeerConnection.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ export default class RTCPeerConnection extends EventTarget implements globalThis
375375
}
376376

377377

378-
addTransceiver (trackOrKind: MediaStreamTrack | string, { direction = 'inactive', sendEncodings = undefined, streams = undefined }: RTCRtpTransceiverInit = {}): RTCRtpTransceiver {
378+
addTransceiver (trackOrKind: MediaStreamTrack | string, { direction = 'inactive' }: RTCRtpTransceiverInit = {}): RTCRtpTransceiver {
379379
if (direction === 'sendrecv') throw new TypeError('unsupported')
380380
const track = trackOrKind instanceof MediaStreamTrack && trackOrKind
381381
const kind = (track && track.kind) || trackOrKind

src/polyfill/RTCRtp.ts

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export class RTCRtpTransceiver implements globalThis.RTCRtpTransceiver {
8484
}
8585

8686

87+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
8788
setCodecPreferences (_codecs): void {
8889
// TODO
8990
// addVideoCodec(payloadType: number, codec: string, profile?: string): void;

0 commit comments

Comments
 (0)