Skip to content

Commit

Permalink
@uppy/audio: fix AudioOptions (#4884)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 authored Jan 23, 2024
1 parent 975038c commit e018602
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/@uppy/audio/src/Audio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import packageJson from '../package.json'

interface AudioOptions extends UIPluginOptions {
target?: HTMLElement | string
showAudioSourceDropdown: boolean
showAudioSourceDropdown?: boolean
}
interface AudioState {
audioReady: boolean
Expand Down Expand Up @@ -58,7 +58,7 @@ export default class Audio<M extends Meta, B extends Body> extends UIPlugin<

#supportsUserMedia

constructor(uppy: Uppy<M, B>, opts: AudioOptions) {
constructor(uppy: Uppy<M, B>, opts?: AudioOptions) {
super(uppy, opts)
this.#mediaDevices = navigator.mediaDevices
this.#supportsUserMedia = this.#mediaDevices != null
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/audio/src/RecordingScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface RecordingScreenProps extends AudioSourceSelectProps {
recordedAudio: string
recording: boolean
supportsRecording: boolean
showAudioSourceDropdown: boolean
showAudioSourceDropdown: boolean | undefined
onSubmit: () => void
i18n: I18n
onStartRecording: () => void
Expand Down

0 comments on commit e018602

Please sign in to comment.