Merge pull request #26715 from zephraph/fix-border-issue

[styled-system] Add type for border export
This commit is contained in:
Eloy Durán
2018-06-21 15:05:24 +02:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -471,8 +471,13 @@ export function borderColor(...args: any[]): any;
export type BorderValue = string | number;
export type ResponsiveBorderValue = ResponsiveValue<BorderValue>;
export interface BorderProps {
border?: ResponsiveBorderValue;
}
export function border(...args: any[]): any;
export interface BordersProps {
border?: ResponsiveBorderValue;
borderTop?: ResponsiveBorderValue;
borderRight?: ResponsiveBorderValue;
borderBottom?: ResponsiveBorderValue;
+2 -2
View File
@@ -60,7 +60,7 @@ import {
alignSelf,
AlignSelfProps,
borders,
BorderProps,
BordersProps,
borderRadius,
BorderRadiusProps,
position,
@@ -113,7 +113,7 @@ interface BoxProps
FlexProps,
JustifySelfProps,
AlignSelfProps,
BorderProps,
BordersProps,
BorderRadiusProps,
PositionProps,
ZIndexProps,