@uppy/companion-client
Version:
Client library for communication with Companion. Intended for use in Uppy plugins.
11 lines (9 loc) • 401 B
text/typescript
import type { UIPluginOptions, AsyncStore } from '@uppy/core'
export interface CompanionPluginOptions extends UIPluginOptions {
storage?: AsyncStore
companionUrl: string
companionHeaders?: Record<string, string>
companionKeysParams?: { key: string; credentialsName: string }
companionCookiesRule?: 'same-origin' | 'include'
companionAllowedHosts?: string | RegExp | (string | RegExp)[]
}