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

10 lines
362 B
Plaintext

import type { BasicTarget } from '../utils/domTarget';
type Position = {
left: number;
top: number;
};
export type Target = BasicTarget<Element | Document>;
export type ScrollListenController = (val: Position) => boolean;
declare function useScroll(target?: Target, shouldUpdate?: ScrollListenController): Position | undefined;
export default useScroll;