source: imaps-frontend/node_modules/react-use/esm/useDrop.d.ts

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 616 bytes
Line 
1/// <reference types="react" />
2export interface DropAreaState {
3 over: boolean;
4}
5export interface DropAreaBond {
6 onDragOver: React.DragEventHandler;
7 onDragEnter: React.DragEventHandler;
8 onDragLeave: React.DragEventHandler;
9 onDrop: React.DragEventHandler;
10 onPaste: React.ClipboardEventHandler;
11}
12export interface DropAreaOptions {
13 onFiles?: (files: File[], event?: any) => void;
14 onText?: (text: string, event?: any) => void;
15 onUri?: (url: string, event?: any) => void;
16}
17declare const useDrop: (options?: DropAreaOptions, args?: never[]) => DropAreaState;
18export default useDrop;
Note: See TracBrowser for help on using the repository browser.