From 6aa75535912006357a1aa61abccd1938a046aa2a Mon Sep 17 00:00:00 2001 From: Mustafa Navruz Date: Mon, 3 Jan 2022 14:04:05 +0300 Subject: [PATCH] Add missing option to the screen capture types (#3400) --- packages/@uppy/screen-capture/types/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/@uppy/screen-capture/types/index.d.ts b/packages/@uppy/screen-capture/types/index.d.ts index d43e81ad3c..8aef1a57e4 100644 --- a/packages/@uppy/screen-capture/types/index.d.ts +++ b/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