From 8ad2352d1eb90e3398fbc8a2e5ca218a38bce268 Mon Sep 17 00:00:00 2001 From: Merlijn Vos Date: Mon, 29 Jul 2024 18:39:11 +0200 Subject: [PATCH] @uppy/remote-sources: fix options type (#5364) --- packages/@uppy/remote-sources/src/index.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/packages/@uppy/remote-sources/src/index.ts b/packages/@uppy/remote-sources/src/index.ts index 5c24cd2e1d..b62a26eaed 100644 --- a/packages/@uppy/remote-sources/src/index.ts +++ b/packages/@uppy/remote-sources/src/index.ts @@ -1,9 +1,4 @@ -import { - BasePlugin, - Uppy, - type UIPluginOptions, - type UnknownProviderPlugin, -} from '@uppy/core' +import { BasePlugin, Uppy, type UnknownProviderPlugin } from '@uppy/core' import Dropbox from '@uppy/dropbox' import GoogleDrive from '@uppy/google-drive' import GooglePhotos from '@uppy/google-photos' @@ -17,6 +12,7 @@ import Zoom from '@uppy/zoom' import type { DefinePluginOpts } from '@uppy/core/lib/BasePlugin.js' import type { Body, Meta } from '@uppy/utils/lib/UppyFile' +import type { CompanionPluginOptions } from '@uppy/companion-client' // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore We don't want TS to generate types for the package.json import packageJson from '../package.json' @@ -36,9 +32,8 @@ const availablePlugins = { Zoom, } -export interface RemoteSourcesOptions extends UIPluginOptions { +export interface RemoteSourcesOptions extends CompanionPluginOptions { sources?: Array> - companionUrl: string } const defaultOptions = {