office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
16 lines (15 loc) • 479 B
TypeScript
/// <reference types="react" />
import * as React from 'react';
export interface IViewport {
width: number;
height: number;
}
export interface IWithViewportState {
viewport?: IViewport;
}
export interface IWithViewportProps {
skipViewportMeasures?: boolean;
}
export declare function withViewport<TProps extends {
viewport?: IViewport;
}, TState>(ComposedComponent: new (props: TProps, ...args: any[]) => React.Component<TProps, TState>): any;