From d2a0e90fb08d4bf8be2d007f66a1a1a3339d81a3 Mon Sep 17 00:00:00 2001 From: Valery Date: Mon, 8 Aug 2022 11:18:10 +0200 Subject: [PATCH] Add children prop to types (#26) --- types.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types.d.ts b/types.d.ts index 221cc0d..738b150 100644 --- a/types.d.ts +++ b/types.d.ts @@ -1,5 +1,6 @@ declare module "react-xmasonry" { export interface XMasonryProps { + children?: React.ReactNode; center?: boolean; maxColumns?: number; responsive?: boolean; @@ -10,6 +11,7 @@ declare module "react-xmasonry" { updateOnImagesLoad?: boolean; } export interface XBlockProps { + children?: React.ReactNode; width?: number; } export const XMasonry: React.ComponentClass;