diff --git a/package.json b/package.json index 4da33b05..ef01439c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ngx-uploader", "description": "Angular File Uploader", - "version": "2.0.10", + "version": "2.0.11", "license": "MIT", "main": "index.js", "typings": "index.d.ts", diff --git a/src/directives/ng-file-select.ts b/src/directives/ng-file-select.ts index e3f8b4d6..5ccc1505 100644 --- a/src/directives/ng-file-select.ts +++ b/src/directives/ng-file-select.ts @@ -67,7 +67,7 @@ export class NgFileSelectDirective implements OnChanges { } if (this.options.filterExtensions && this.options.allowedExtensions && this.files && this.files.length) { - this.files = [].filter.call(this.files, f => { + this.files = [].filter.call(this.files, (f: any) => { if (this.options.allowedExtensions.indexOf(f.type) !== -1) { return true; }