Skip to content

Commit

Permalink
Add missing option to the screen capture types (#3400)
Browse files Browse the repository at this point in the history
  • Loading branch information
navruzm committed Jan 3, 2022
1 parent bdd1eb5 commit 6aa7553
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@uppy/screen-capture/types/index.d.ts
@@ -1,4 +1,4 @@
import type { PluginOptions, UIPlugin } from '@uppy/core'
import type { PluginOptions, UIPlugin, PluginTarget } from '@uppy/core'

// https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints#Properties_of_shared_screen_tracks
// TODO: use the global DisplayMediaStreamConstraints once typescript includes it by default
Expand All @@ -12,6 +12,7 @@ import type { PluginOptions, UIPlugin } from '@uppy/core'
}

export interface ScreenCaptureOptions extends PluginOptions {
target?: PluginTarget
displayMediaConstraints?: DisplayMediaStreamConstraints,
userMediaConstraints?: MediaStreamConstraints,
preferredVideoMimeType?: string
Expand Down

0 comments on commit 6aa7553

Please sign in to comment.