From 5c4611f637ddc5d76a5bfd3bcebf037aa8563799 Mon Sep 17 00:00:00 2001 From: Ron Li Date: Tue, 7 Aug 2018 17:25:02 +0800 Subject: [PATCH] Update file-like-object.class.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "rawFile" variable should be annotated by "any", because it's an object in actual use. Otherwise, using “rawFile.xx” leads to tsLint's error --- src/file-upload/file-like-object.class.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file-upload/file-like-object.class.ts b/src/file-upload/file-like-object.class.ts index 746dbdd7..ce2f1a5b 100644 --- a/src/file-upload/file-like-object.class.ts +++ b/src/file-upload/file-like-object.class.ts @@ -7,7 +7,7 @@ export class FileLikeObject { public size: any; public type: string; public name: string; - public rawFile: string; + public rawFile: any; public constructor(fileOrInput: any) { this.rawFile = fileOrInput;