Type Alias: UsePassthroughHookOptions<P>
ts
type UsePassthroughHookOptions<P> = {
debounceMs?: number;
fallback?: (...args: P) => void | Promise<void>;
immediate?: boolean;
throttleMs?: number;
};Options for usePassthroughHook that control when and how a fallback is executed and how the produced handler is scheduled.
The passthrough hook builds an invoker for a given event that respects component props (onX prop handlers), attribute listeners, and optional "callOnX" hook arrays before falling back to your own handler. These options allow you to customize that behavior.
Type Parameters
| Type Parameter | Description |
|---|---|
P extends any[] | Tuple of the event argument types |