@animech-public/chonky
Version:
A File Browser component for React
12 lines (11 loc) • 434 B
TypeScript
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 type ChonkyDndFileEntryItem<DragObject = any> = DragObject & {
payload: StartDragNDropPayload;
};
export declare const ChonkyDndFileEntryType = "dnd-chonky-file-entry";