PromoCursed/node_modules/rc-upload/lib/traverseFileTree.d.ts
2024-08-20 23:25:37 +04:00

15 lines
478 B
TypeScript

import type { RcFile } from './interface';
interface InternalDataTransferItem extends DataTransferItem {
isFile: boolean;
file: (cd: (file: RcFile & {
webkitRelativePath?: string;
}) => void) => void;
createReader: () => any;
fullPath: string;
isDirectory: boolean;
name: string;
path: string;
}
declare const traverseFileTree: (files: InternalDataTransferItem[], callback: any, isAccepted: any) => void;
export default traverseFileTree;