mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-23 02:25:07 +00:00
Fix locale types between dashboard and status-bar (#5878)
Ref: https://github.com/transloadit/uppy/pull/5728#issuecomment-3031052997 Closes #5811
This commit is contained in:
parent
c4d97cd972
commit
c15c6fd895
3 changed files with 9 additions and 2 deletions
6
.changeset/big-cloths-look.md
Normal file
6
.changeset/big-cloths-look.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
"@uppy/status-bar": patch
|
||||
"@uppy/dashboard": patch
|
||||
---
|
||||
|
||||
Make each entry in `strings` in locale type optional
|
||||
|
|
@ -171,7 +171,7 @@ interface DashboardMiscOptions<M extends Meta, B extends Body>
|
|||
thumbnailWidth?: number
|
||||
trigger?: string | Element | null
|
||||
waitForThumbnailsBeforeUpload?: boolean
|
||||
locale?: LocaleStrings<typeof locale> & typeof StatusBarLocale
|
||||
locale?: LocaleStrings<typeof locale> & LocaleStrings<typeof StatusBarLocale>
|
||||
}
|
||||
|
||||
export type DashboardOptions<
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import type { UIPluginOptions } from '@uppy/core/lib/UIPlugin.js'
|
||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
||||
import type StatusBarLocale from './locale.js'
|
||||
|
||||
export interface StatusBarOptions extends UIPluginOptions {
|
||||
|
|
@ -9,5 +10,5 @@ export interface StatusBarOptions extends UIPluginOptions {
|
|||
hidePauseResumeButton?: boolean
|
||||
hideCancelButton?: boolean
|
||||
doneButtonHandler?: (() => void) | null
|
||||
locale?: typeof StatusBarLocale
|
||||
locale?: LocaleStrings<typeof StatusBarLocale>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue