Support `this.$refs.upload.___` using `as`

master
Fahmi Akbar Wildana 8 years ago committed by GitHub
parent 631ad4b16b
commit 1ea52e241f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
index.d.ts vendored

@ -26,14 +26,14 @@ global {
} }
} }
interface VueUploadComponent extends Vue, Element { class _ extends Vue {
// Instance / Methods // Instance / Methods
get(id: VueUpload.File | object | string): VueUpload.File | object | boolean get(id: VueUpload.File | object | string): VueUpload.File | object | boolean
add(files: Array<VueUpload.File | File | object> | VueUpload.File | File | object): object | Array<VueUpload.File | object> | boolean add(files: Array<VueUpload.File | File | object> | VueUpload.File | File | object): object | Array<VueUpload.File | object> | boolean
addInputFile(el: HTMLInputElement): Array<VueUpload.File> addInputFile(el: HTMLInputElement): Array<VueUpload.File>
addDataTransfer(dataTransfer: DataTransfer): Promise<Array<VueUpload.File>> addDataTransfer(dataTransfer: DataTransfer): Promise<Array<VueUpload.File>>
update(id: VueUpload.File | object | string, data: object): object | boolean 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 replace(id1: VueUpload.File | object | string, id2: VueUpload.File | object | string): boolean
clear(): boolean clear(): boolean
@ -52,4 +52,4 @@ interface VueUploadComponent extends Vue, Element {
// } // }
// } // }
export default VueUploadComponent export default _

Loading…
Cancel
Save