UNPKG

acud

Version:

acg react 组件库

4 lines (3 loc) • 283 B
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): [(item: T, instance: HTMLElement) => void, () => void, CacheMap, number];