UNPKG

@docsvision/webclient

Version:

Type definitions for DocsVision WebClient scripts and extensions.

17 lines (16 loc) 577 B
import { StringMap } from '@docsvision/webclient/System/StringMap'; export interface IFileUploadOptions { fields?: StringMap; headers?: StringMap; onProgressChange?: (process: number) => void; url: string; fileField: string; } /** Сервис для загрузки файлов */ export interface IFileUploadService { upload<T>(file: File, options: IFileUploadOptions): Promise<T>; } export declare type $FileUpload = { fileUpload: IFileUploadService; }; export declare const $FileUpload: string | ((model?: $FileUpload) => IFileUploadService);