source: imaps-frontend/node_modules/react-use/esm/useDropArea.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: 624 bytes
RevLine 
[d565449]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 useDropArea: (options?: DropAreaOptions) => [DropAreaBond, DropAreaState];
18export default useDropArea;
Note: See TracBrowser for help on using the repository browser.