source: imaps-frontend/node_modules/@use-gesture/react/dist/declarations/src/useDrag.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: 563 bytes
Line 
1import { EventTypes, Handler, UserDragConfig } from '@use-gesture/core/types';
2/**
3 * Drag hook.
4 *
5 * @param {Handler<'drag'>} handler - the function fired every time the drag gesture updates
6 * @param {UserDragConfig} config - the config object including generic options and drag options
7 */
8export declare function useDrag<EventType = EventTypes['drag'], Config extends UserDragConfig = UserDragConfig>(handler: Handler<'drag', EventType>, config?: Config): Config["target"] extends object ? void : (...args: any[]) => import("./types.js").ReactDOMAttributes;
Note: See TracBrowser for help on using the repository browser.