From 91bbcaf395179b342c9a853de1ca12e798abd265 Mon Sep 17 00:00:00 2001 From: Andrew Hathaway Date: Mon, 9 Oct 2017 22:38:44 +0100 Subject: [PATCH] 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 --- types/react-grid-layout/index.d.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/types/react-grid-layout/index.d.ts b/types/react-grid-layout/index.d.ts index d6d89c6727..bf3f5805d9 100644 --- a/types/react-grid-layout/index.d.ts +++ b/types/react-grid-layout/index.d.ts @@ -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 , // Ali Taheri , -// Zheyang Song +// Zheyang Song , +// Andrew Hathaway // 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 or similar.