10 lines
292 B
TypeScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
interface uploadInit {
clickInit?: MouseEventInit;
changeInit?: EventInit;
}
interface uploadOptions {
applyAccept?: boolean;
}
declare function upload(element: HTMLElement, fileOrFiles: File | File[], init?: uploadInit, { applyAccept }?: uploadOptions): void;
export { upload };