UNPKG

@cisstech/nge

Version:

NG Essentials is a collection of libraries for Angular developers.

20 lines (19 loc) 763 B
import * as i0 from "@angular/core"; /** Service to programmatically open file dialog. */ export declare class PickerBrowserService { /** * Open file dialog to select files. * @param options picker options. * @returns A promise that resolves with the picked files or and empty array. */ pickFiles(options: PickerBrowserOptions): Promise<File[]>; static ɵfac: i0.ɵɵFactoryDeclaration<PickerBrowserService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<PickerBrowserService>; } /** Picker options. */ export interface PickerBrowserOptions { /** optional mime type of the files to select. (default *) */ readonly accept?: string; /** allow multiple files (default true.) */ readonly multiple?: boolean; }