source: imaps-frontend/node_modules/react-use/lib/useSize.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: 338 bytes
Line 
1import * as React from 'react';
2export declare type Element = ((state: State) => React.ReactElement<any>) | React.ReactElement<any>;
3export interface State {
4 width: number;
5 height: number;
6}
7declare const useSize: (element: Element, { width, height }?: Partial<State>) => [React.ReactElement<any>, State];
8export default useSize;
Note: See TracBrowser for help on using the repository browser.