From 86b92bacb833930494f6564b5cce1c108b76cc02 Mon Sep 17 00:00:00 2001 From: Anton Vasin Date: Wed, 28 Feb 2018 18:57:16 +0300 Subject: [PATCH] Add legacy aliases to grid-styled --- types/grid-styled/index.d.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/types/grid-styled/index.d.ts b/types/grid-styled/index.d.ts index bea89b9237..dec3fd34f2 100644 --- a/types/grid-styled/index.d.ts +++ b/types/grid-styled/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for grid-styled 3.0 +// Type definitions for grid-styled 3.2 // Project: https://github.com/jxnblk/grid-styled // Definitions by: Anton Vasin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -44,9 +44,14 @@ export interface BoxProps } export interface FlexProps extends BoxProps { - align: ResponsiveProp | boolean; - justify: ResponsiveProp | boolean; - flexDirection: ResponsiveProp | boolean; + alignItems: ResponsiveProp; + justifyContent: ResponsiveProp; + flexDirection: ResponsiveProp; + flexWrap: ResponsiveProp; + + // legacy aliases https://github.com/jxnblk/styled-system/releases/tag/v2.0.0 + justify: ResponsiveProp; + align: ResponsiveProp; wrap: ResponsiveProp | boolean; }