diff --git a/packages/@uppy/dashboard/types/dashboard-tests.ts b/packages/@uppy/dashboard/types/dashboard-tests.ts index 956859c60..762e882e8 100644 --- a/packages/@uppy/dashboard/types/dashboard-tests.ts +++ b/packages/@uppy/dashboard/types/dashboard-tests.ts @@ -15,9 +15,13 @@ import Dashboard = require('../') { const uppy = Uppy() - uppy.use(Dashboard, { + uppy.use(Dashboard, >{ width: '100%', - height: 700 + height: 700, + metaFields: [ + { id: 'caption', name: 'Caption' }, + { id: 'license', name: 'License', placeholder: 'Creative Commons, Apache 2.0, ...' }, + ] }) } diff --git a/packages/@uppy/dashboard/types/index.d.ts b/packages/@uppy/dashboard/types/index.d.ts index 301773ff1..4dfbdc9ef 100644 --- a/packages/@uppy/dashboard/types/index.d.ts +++ b/packages/@uppy/dashboard/types/index.d.ts @@ -1,5 +1,11 @@ import Uppy = require('@uppy/core'); +interface MetaField { + id: string; + name: string; + placeholder?: string; +} + declare module Dashboard { interface DashboardOptions extends Uppy.PluginOptions { onRequestCloseModal: () => void; @@ -14,7 +20,7 @@ declare module Dashboard { note: string; showLinkToFileUploadResult: boolean; proudlyDisplayPoweredByUppy: boolean; - metaFields: string[]; + metaFields: MetaField[]; plugins: string[]; disableStatusBar: boolean; showProgressDetails: boolean;