File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ type UseDoubleClickProps<E extends HTMLElement> = {
1414 * It delays the single click callback execution for a specified time, and cancels it if a second click (i.e. a double click) occurs within that time.
1515 *
1616 * @template {HTMLElement} E - The specific type of HTMLElement to be used with this hook (e.g., HTMLButtonElement, HTMLDivElement).
17- * @param {Object } params - Configuration options for click handling.
18- * @param {number } [params .delay=250] - The number of milliseconds to wait before triggering the single click callback. Defaults to 250ms.
19- * @param {(event: MouseEvent<E>) => void } [params .click] - The callback function to be executed on a single click.
20- * @param {(event: MouseEvent<E>) => void } params .doubleClick - The callback function to be executed on a double click. Required.
17+ * @param {Object } props - Configuration options for click handling.
18+ * @param {number } [props .delay=250] - The number of milliseconds to wait before triggering the single click callback. Defaults to 250ms.
19+ * @param {(event: MouseEvent<E>) => void } [props .click] - The callback function to be executed on a single click.
20+ * @param {(event: MouseEvent<E>) => void } props .doubleClick - The callback function to be executed on a double click. Required.
2121 *
2222 * @returns {(event: MouseEvent<E>) => void } A click handler function to attach to an element's `onClick` event.
2323 *
You can’t perform that action at this time.
0 commit comments