Explorar o código

Add missing option to the screen capture types (#3400)

Mustafa Navruz %!s(int64=3) %!d(string=hai) anos
pai
achega
6aa7553591
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      packages/@uppy/screen-capture/types/index.d.ts

+ 2 - 1
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
@@ -12,6 +12,7 @@ import type { PluginOptions, UIPlugin } from '@uppy/core'
   }
 
 export interface ScreenCaptureOptions extends PluginOptions {
+    target?: PluginTarget
     displayMediaConstraints?: DisplayMediaStreamConstraints,
     userMediaConstraints?: MediaStreamConstraints,
     preferredVideoMimeType?: string