Add FileItem in declaration ng2-file-upload.d.ts #492

Closed
opened 2016-11-16 04:10:57 +00:00 by TomySmit · 2 comments
TomySmit commented 2016-11-16 04:10:57 +00:00 (Migrated from github.com)

I use callback functions onCompleteAll
this.uploader.onCompleteItem = (item: FileItem, response: string, status: number) => { console.log(response); console.log(item); console.log(status); }
and get typescript error

Module '"./node_modules/ng2-file-upload/ng2-file-upload"' has no exported member 'FileItem'.

I use callback functions onCompleteAll `this.uploader.onCompleteItem = (item: FileItem, response: string, status: number) => { console.log(response); console.log(item); console.log(status); }` and get typescript error > Module '"./node_modules/ng2-file-upload/ng2-file-upload"' has no exported member 'FileItem'.
emrep commented 2016-11-29 08:45:02 +00:00 (Migrated from github.com)

I have same problem

I have same problem
kfontaine-smartwave commented 2016-12-01 09:12:43 +00:00 (Migrated from github.com)

If fixed this by adding the line

export * from './components/file-upload/file-item.class';

in ng2-file-upload/ng2-file-upload.d.ts.
I made a pull request #523

If fixed this by adding the line `export * from './components/file-upload/file-item.class';` in `ng2-file-upload/ng2-file-upload.d.ts`. I made a pull request #523
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#492