mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
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:
committed by
Wesley Wigham
parent
bcffa79aae
commit
91bbcaf395
Vendored
+8
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user