Skip to content

Commit

Permalink
fix: define createMediaStreamTrackSource() as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Dec 28, 2023
1 parent 8c7cee8 commit 1dd6d0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/native-audio-context.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TNativeMediaStreamTrackAudioSourceNode } from './native-media-stream-track-audio-source-node';

export type TNativeAudioContext = AudioContext & {
// @todo TypeScript v4.4 doesn't come with definitions for the MediaStreamTrackAudioSourceNode anymore.
createMediaStreamTrackSource(mediaStreamTrack: MediaStreamTrack): TNativeMediaStreamTrackAudioSourceNode;
// Bug #121: Only Firefox does yet support the MediaStreamTrackAudioSourceNode.
createMediaStreamTrackSource?(mediaStreamTrack: MediaStreamTrack): TNativeMediaStreamTrackAudioSourceNode;
};

0 comments on commit 1dd6d0b

Please sign in to comment.