diff --git a/types/grid-styled/index.d.ts b/types/grid-styled/index.d.ts index af969b0cec..81c11df405 100644 --- a/types/grid-styled/index.d.ts +++ b/types/grid-styled/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for grid-styled 4.1 +// Type definitions for grid-styled 4.2 // Project: https://github.com/jxnblk/grid-styled // Definitions by: Anton Vasin // Victor Orlov @@ -8,7 +8,7 @@ export type Omit = Pick; -import { ComponentClass } from "react"; +import { ComponentType } from "react"; import { StyledComponentClass } from "styled-components"; export type ResponsiveProp = number | string | Array; @@ -39,7 +39,7 @@ export interface BoxProps extends Omit, "width" | "wrap" | "is"> { flex?: ResponsiveProp; order?: ResponsiveProp; - is?: string | ComponentClass; + is?: string | ComponentType; alignSelf?: ResponsiveProp; } @@ -77,4 +77,4 @@ export const theme: Theme; export type DivProps = Omit, "ref"> & { innerRef?: (el: HTMLDivElement) => any; }; -export const div: ComponentClass; +export const div: ComponentType;