amis-rpc-design/node_modules/rc-virtual-list/lib/hooks/useHeights.d.ts

9 lines
369 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import type { GetKey } from '../interface';
import CacheMap from '../utils/CacheMap';
export default function useHeights<T>(getKey: GetKey<T>, onItemAdd?: (item: T) => void, onItemRemove?: (item: T) => void): [
setInstanceRef: (item: T, instance: HTMLElement) => void,
collectHeight: (sync?: boolean) => void,
cacheMap: CacheMap,
updatedMark: number
];