Completely updated React, fixed #11, (hopefully)

This commit is contained in:
2018-03-04 19:11:49 -05:00
parent 6e0afd6e2a
commit 34e5f5139a
13674 changed files with 333464 additions and 473223 deletions

View File

@@ -8,14 +8,20 @@ export interface WithWidthProps {
width: Breakpoint;
}
export function isWidthUp(
export function isWidthDown(
breakpoint: Breakpoint,
screenWidth: number,
inclusive?: boolean
screenWidth: Breakpoint,
inclusive?: boolean,
): boolean;
export default function withWidth<P = {}>(
options?: WithWidthOptions
): (
component: React.ComponentType<P>
) => React.ComponentClass<P & WithWidthProps>;
export function isWidthUp(
breakpoint: Breakpoint,
screenWidth: Breakpoint,
inclusive?: boolean,
): boolean;
export default function withWidth(
options?: WithWidthOptions,
): <P>(
component: React.ComponentType<P & WithWidthProps>,
) => React.ComponentClass<P & Partial<WithWidthProps>>;