@resourge/react-fetch
Version:
[](LICENSE)
16 lines (15 loc) • 603 B
TypeScript
/**
* react-fetch v1.43.1
*
* Copyright (c) resourge.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
import { type MutableRefObject, type UIEvent } from 'react';
import { type ScrollPos } from './types';
export declare const getScrollPage: () => ScrollPos;
export type ElementWithScrollTo = HTMLElement;
export declare const useOnScroll: <T extends ElementWithScrollTo | null>(scrollMethod: (position: ScrollPos) => void) => [ref: MutableRefObject<T>, onScroll: (event: UIEvent<T>) => void];