Quellcode durchsuchen

@uppy/remote-sources: fix options type (#5364)

Merlijn Vos vor 8 Monaten
Ursprung
Commit
8ad2352d1e
1 geänderte Dateien mit 3 neuen und 8 gelöschten Zeilen
  1. 3 8
      packages/@uppy/remote-sources/src/index.ts

+ 3 - 8
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<keyof Omit<typeof availablePlugins, '__proto__'>>
-  companionUrl: string
 }
 
 const defaultOptions = {