UNPKG

@jay-js/ui

Version:

A library of UI components for Jay JS with Tailwind CSS and daisyUI.

9 lines (8 loc) 330 B
import type { Listener } from "@jay-js/elements"; /** * A hook to handle event listeners * * @param type - The event type to listen for (e.g., 'click', 'input') * @param listeners - An object containing event handler functions * @returns void */ export declare function useListener(type: string, listeners: Listener): void;