Browse Source

@uppy/dashboard: fix type of trigger option (#5106)

Merlijn Vos 1 năm trước cách đây
mục cha
commit
ffdfa096d3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/@uppy/dashboard/src/Dashboard.tsx

+ 1 - 1
packages/@uppy/dashboard/src/Dashboard.tsx

@@ -166,7 +166,7 @@ interface DashboardMiscOptions<M extends Meta, B extends Body>
   thumbnailHeight?: number
   thumbnailType?: string
   thumbnailWidth?: number
-  trigger?: string
+  trigger?: string | Element
   waitForThumbnailsBeforeUpload?: boolean
 }