You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
InternshipProject/node_modules/rc-virtual-list/lib/hooks/useScrollTo.d.ts

6 lines
424 B

import * as React from 'react';
import type { ScrollTo } from '../List';
import type { GetKey } from '../interface';
import type CacheMap from '../utils/CacheMap';
export default function useScrollTo<T>(containerRef: React.RefObject<HTMLDivElement>, data: T[], heights: CacheMap, itemHeight: number, getKey: GetKey<T>, collectHeight: () => void, syncScrollTop: (newTop: number) => void, triggerFlash: () => void): ScrollTo;