Gazebo_simulation-Frontend/node_modules/file-selector/dist/file-selector.d.ts
2020-12-21 10:29:31 -05:00

9 lines
379 B
TypeScript

import { FileWithPath } from './file';
/**
* Convert a DragEvent's DataTrasfer object to a list of File objects
* NOTE: If some of the items are folders,
* everything will be flattened and placed in the same list but the paths will be kept as a {path} property.
* @param evt
*/
export declare function fromEvent(evt: Event): Promise<Array<FileWithPath | DataTransferItem>>;