office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
12 lines (11 loc) • 333 B
TypeScript
import * as React from 'react';
export interface IViewport {
width: number;
height: number;
}
export interface IWithViewportState {
viewport?: IViewport;
}
export declare function withViewport<P extends {
viewport?: IViewport;
}, S>(ComposedComponent: (new (props: P, ...args: any[]) => React.Component<P, S>)): any;