const const result: {
x: Signal<number>;
y: Signal<number>;
setX: (value: number, behaviourOverride?: ScrollBehavior) => void;
setY: (value: number, behaviourOverride?: ScrollBehavior) => void;
}
result = function useWindowScroll(behavior?: ScrollBehavior): {
x: Signal<number>;
y: Signal<number>;
setX: (value: number, behaviourOverride?: ScrollBehavior) => void;
setY: (value: number, behaviourOverride?: ScrollBehavior) => void;
}
useWindowScroll()