Add compactType prop to react-grid-layout (#20406)

* React-grid-layout typings to support compactType prop

* Bump version of typings

* Add in author details

* Fix trailing whitespace
This commit is contained in:
Andrew Hathaway
2017-10-09 14:38:44 -07:00
committed by Wesley Wigham
parent bcffa79aae
commit 91bbcaf395
+8 -2
View File
@@ -1,8 +1,9 @@
// Type definitions for react-grid-layout 0.14
// Type definitions for react-grid-layout 0.16
// Project: https://github.com/STRML/react-grid-layout
// Definitions by: Andrew Birkholz <https://github.com/abirkholz>,
// Ali Taheri <https://github.com/alitaheri>,
// Zheyang Song <https://github.com/ZheyangSong>
// Zheyang Song <https://github.com/ZheyangSong>,
// Andrew Hathaway <https://github.com/andrewhathaway>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -131,6 +132,11 @@ declare namespace ReactGridLayout {
*/
verticalCompact?: boolean;
/**
* Compaction type.
*/
compactType?: "vertical" | "horizontal";
/**
* This allows setting the initial width on the server side.
* This is required unless using the HOC <WidthProvider> or similar.