UNPKG

react-querybuilder

Version:

React Query Builder component for constructing queries and filters, with utilities for executing them in various database and evaluation contexts

14 lines (13 loc) 460 B
import type { MouseEvent } from "react"; interface RQBMouseEventHandler { (event?: MouseEvent, context?: any): void; } /** * Wraps an event handler function in another function that calls * `event.preventDefault()` and `event.stopPropagation()` first. The * returned function accepts and forwards a second `context` argument. * * @group Hooks */ export declare const useStopEventPropagation: (method: RQBMouseEventHandler) => RQBMouseEventHandler; export {};