chonky
Version:
A File Browser component for React
13 lines (12 loc) • 492 B
TypeScript
import { DragObjectWithType } from 'react-dnd';
import { Nilable } from 'tsdef';
import { StartDragNDropPayload } from './action-payloads.types';
import { FileData } from './file.types';
export interface ChonkyDndDropResult {
dropTarget: Nilable<FileData> | any;
dropEffect: 'move' | 'copy';
}
export declare type ChonkyDndFileEntryItem = DragObjectWithType & {
payload: StartDragNDropPayload;
};
export declare const ChonkyDndFileEntryType = "dnd-chonky-file-entry";