mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-28 08:17:54 +08:00
[react-grid-layout] Add null type to compactType
When using undefined on the compactType the Component uses the compactType "vertical" instead of null. By excplicitely using null the grid works fine.
This commit is contained in:
2
types/react-grid-layout/index.d.ts
vendored
2
types/react-grid-layout/index.d.ts
vendored
@@ -140,7 +140,7 @@ declare namespace ReactGridLayout {
|
||||
/**
|
||||
* Compaction type.
|
||||
*/
|
||||
compactType?: "vertical" | "horizontal";
|
||||
compactType?: "vertical" | "horizontal" | null;
|
||||
|
||||
/**
|
||||
* This allows setting the initial width on the server side.
|
||||
|
||||
Reference in New Issue
Block a user