Skip to content

Commit

Permalink
@uppy/remote-sources: fix options type (#5364)
Browse files Browse the repository at this point in the history
  • Loading branch information
Murderlon authored Jul 29, 2024
1 parent 0fd8065 commit 8ad2352
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/@uppy/remote-sources/src/index.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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'
Expand All @@ -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 = {
Expand Down

0 comments on commit 8ad2352

Please sign in to comment.