From 1ea52e241fb083292a0eeea10961db5defbe13ba Mon Sep 17 00:00:00 2001 From: Fahmi Akbar Wildana Date: Wed, 14 Mar 2018 07:33:25 +0700 Subject: [PATCH] Support `this.$refs.upload.___` using `as` --- index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 6851d69..4f3c22d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -26,14 +26,14 @@ global { } } -interface VueUploadComponent extends Vue, Element { +class _ extends Vue { // Instance / Methods get(id: VueUpload.File | object | string): VueUpload.File | object | boolean add(files: Array | VueUpload.File | File | object): object | Array | boolean addInputFile(el: HTMLInputElement): Array addDataTransfer(dataTransfer: DataTransfer): Promise> update(id: VueUpload.File | object | string, data: object): object | boolean - // remove(id: VueUpload.File | object | string): object | boolean // Types are incompatible with Element + remove(id: VueUpload.File | object | string): object | boolean replace(id1: VueUpload.File | object | string, id2: VueUpload.File | object | string): boolean clear(): boolean @@ -52,4 +52,4 @@ interface VueUploadComponent extends Vue, Element { // } // } -export default VueUploadComponent +export default _