Skip to content

Commit 5c6d335

Browse files
JabherSTRML
authored andcommitted
narrowing flow definition for style prop: Object -> CSSStyleDeclaration (react-grid-layout#716)
1 parent ad50e42 commit 5c6d335

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/GridItem.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type Props = {
4343
usePercentages?: boolean,
4444

4545
className: string,
46-
style?: Object,
46+
style?: CSSStyleDeclaration,
4747
// Draggability
4848
cancel: string,
4949
handle: string,

lib/ReactGridLayout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type State = {
4343

4444
export type Props = {
4545
className: string,
46-
style: Object,
46+
style: CSSStyleDeclaration,
4747
width: number,
4848
autoSize: boolean,
4949
cols: number,

lib/components/WidthProvider.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { ComponentType as ReactComponentType } from "react";
77
type WPProps = {
88
className?: string,
99
measureBeforeMount: boolean,
10-
style?: Object
10+
style?: CSSStyleDeclaration
1111
};
1212

1313
type WPState = {

0 commit comments

Comments
 (0)