From f76369421d032248bfeb0ca0c8321a1476e0e134 Mon Sep 17 00:00:00 2001 From: Jan Kuri Date: Fri, 29 Jul 2016 08:09:55 +0200 Subject: [PATCH] bump to 0.5.9 --- package.json | 2 +- src/services/ng2-uploader.d.ts | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 812f587e..84395c7d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ng2-uploader", "description": "Angular2 File Uploader", - "version": "0.5.8", + "version": "0.5.9", "license": "MIT", "main": "ng2-uploader.ts", "author": "Jan Kuri ", diff --git a/src/services/ng2-uploader.d.ts b/src/services/ng2-uploader.d.ts index eb36339a..32798cb2 100644 --- a/src/services/ng2-uploader.d.ts +++ b/src/services/ng2-uploader.d.ts @@ -1,4 +1,21 @@ import { EventEmitter } from '@angular/core'; +export declare class UploadedFile { + id: string; + status: number; + statusText: string; + progress: Object; + originalName: string; + size: number; + response: string; + done: boolean; + error: boolean; + abort: boolean; + constructor(id: string, originalName: string, size: number); + setProgres(progress: Object): void; + setError(): void; + setAbort(): void; + onFinished(status: number, statusText: string, response: string): void; +} export declare class Ng2Uploader { url: string; cors: boolean; @@ -13,7 +30,7 @@ export declare class Ng2Uploader { multipart: boolean; method: string; debug: boolean; - customHeaders: Object; + customHeaders: any; encodeHeaders: boolean; authTokenPrefix: string; authToken: string;