Spaces:
Sleeping
Sleeping
File size: 574 Bytes
645859a |
1 2 3 4 5 6 7 8 9 |
import { UserWheelConfig, Handler, EventTypes } from '@use-gesture/core/types';
/**
* Wheel hook.
*
* @param {Handler<'wheel'>} handler - the function fired every time the wheel gesture updates
* @param {UserWheelConfig} config - the config object including generic options and wheel options
*/
export declare function useWheel<EventType = EventTypes['wheel'], Config extends UserWheelConfig = UserWheelConfig>(handler: Handler<'wheel', EventType>, config?: Config): Config["target"] extends object ? void : (...args: any[]) => import("./types.js").ReactDOMAttributes;
|