Files
NapCatQQ/.pnpm-store/v3/files/aa/5f0b85526a53bbf5186f95a90ba56b17980f15a2ca74495dc2f05e67e1334126d8aa8d53be72473ffe6513408b939b3dd091406c0ecf4fe895e226d728294a
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

14 lines
495 B
Plaintext

import type { BasicTarget } from '../utils/domTarget';
type EventType = MouseEvent | TouchEvent;
export interface Options {
delay?: number;
moveThreshold?: {
x?: number;
y?: number;
};
onClick?: (event: EventType) => void;
onLongPressEnd?: (event: EventType) => void;
}
declare function useLongPress(onLongPress: (event: EventType) => void, target: BasicTarget, { delay, moveThreshold, onClick, onLongPressEnd }?: Options): void;
export default useLongPress;