source: imaps-frontend/node_modules/react-use/esm/useMeasure.d.ts@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 470 bytes
RevLine 
[d565449]1export declare type UseMeasureRect = Pick<DOMRectReadOnly, 'x' | 'y' | 'top' | 'left' | 'right' | 'bottom' | 'height' | 'width'>;
2export declare type UseMeasureRef<E extends Element = Element> = (element: E) => void;
3export declare type UseMeasureResult<E extends Element = Element> = [UseMeasureRef<E>, UseMeasureRect];
4declare function useMeasure<E extends Element = Element>(): UseMeasureResult<E>;
5declare const _default: typeof useMeasure;
6export default _default;
Note: See TracBrowser for help on using the repository browser.