Files
NapCatQQ/.pnpm-store/v3/files/69/372600d45ff563408dbdd3cedb9a20c4921be5d04661d5cbd7670433f9be569397a306cb9242b517c938ed8fc908ab25df9fd3ae892733fe2a3091fce239db
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

13 lines
420 B
Plaintext

type Dimensions = {
width: number | null;
height: number | null;
};
/**
* A custom hook that measures the dimensions of a DOM element.
* @returns A tuple containing a ref callback and the dimensions of the measured element.
*/
declare function useMeasure(): [React.RefCallback<Element>, Dimensions];
type UseMeasureReturn = ReturnType<typeof useMeasure>;
export { Dimensions, UseMeasureReturn, useMeasure };