Files
NapCatQQ/.pnpm-store/v3/files/57/0250ade2db4ad1952c50630cada59bf05ed020a3b7227fdab6d17d11dfb8b209ad56353a2dd6fcaaa74b1c31e3637593fef14ec82e93c965de01c78e591cbf
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

13 lines
566 B
Plaintext

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.
*
* EXPERIMENTAL: A list of https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle objects can also be passed as an arg
* and a list of File objects will be returned.
*
* @param evt
*/
export declare function fromEvent(evt: Event | any): Promise<(FileWithPath | DataTransferItem)[]>;