diff --git a/packages/uppy/types/index.d.ts b/packages/uppy/types/index.d.ts index 3d99a5d1e2..76500aab0a 100644 --- a/packages/uppy/types/index.d.ts +++ b/packages/uppy/types/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: 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' diff --git a/packages/uppy/types/index.test-d.ts b/packages/uppy/types/index.test-d.ts index e2beab6fae..e960a60285 100644 --- a/packages/uppy/types/index.test-d.ts +++ b/packages/uppy/types/index.test-d.ts @@ -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,