source: imaps-frontend/node_modules/react-use/lib/useSize.d.ts

main
Last change on this file 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
RevLine 
[d565449]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.