Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
10 lines
362 B
Plaintext
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;
|