Fix the types in rebass__grid

This commit is contained in:
Jessica
2018-11-26 19:22:27 +09:00
parent 59bfd27bf6
commit 3fc77b020c
+5 -2
View File
@@ -10,7 +10,7 @@
export type Omit<T, K extends keyof T> = Pick<T, ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never, [x: number]: never })[keyof T]>;
import { ComponentType } from "react";
import { StyledComponent, Interpolation } from "styled-components";
import { StyledComponent, CSSIntrinsicAttributeType } from "styled-components";
export type ResponsiveProp = number | string | Array<string | number>;
@@ -34,7 +34,10 @@ export interface CommonProps {
px?: ResponsiveProp;
py?: ResponsiveProp;
theme?: any;
css?: Interpolation<any>;
/**
* NOTE: this is not compatible with the styled-components babel plugin anymore
*/
css?: CSSIntrinsicAttributeType;
}
export interface BoxProps