Skip to content

Commit

Permalink
uppy: fix types (#4721)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 authored Oct 3, 2023
1 parent 9353c4c commit e1e892b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/uppy/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Definitions by: taoqf <https://github.com/taoqf>

// Core
export { default as Core } from '@uppy/core'
export { default as Uppy } from '@uppy/core'

// Stores
export { default as DefaultStore } from '@uppy/store-default'
Expand Down
6 changes: 3 additions & 3 deletions packages/uppy/types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import * as Uppy from '..'
endpoint: 'xxx',
fieldName: 'up_load_file',
})
uppy.on('upload-success', (fileCount, body, uploadurl) => {
console.log(fileCount, body, uploadurl, ` files uploaded`)
uppy.on('upload-success', (fileCount, { body, uploadURL }) => {
console.log(fileCount, body, uploadURL, ` files uploaded`)
})
})()
;(() => {
new Uppy.Uppy({ autoProceed: false })
const uppy = new Uppy.Uppy({ autoProceed: false })
.use(Uppy.Dashboard, { trigger: '#select-files' })
.use(Uppy.GoogleDrive, {
target: Uppy.Dashboard,
Expand Down

0 comments on commit e1e892b

Please sign in to comment.