From e438633128722bd09348601d3ed9069a24ad6e7d Mon Sep 17 00:00:00 2001 From: Bernardo Raposo Date: Sun, 15 Sep 2019 10:00:17 +0100 Subject: [PATCH] Improve typing for cover prop --- src/components/FullsizePicture.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/FullsizePicture.tsx b/src/components/FullsizePicture.tsx index ebc9835..278c388 100644 --- a/src/components/FullsizePicture.tsx +++ b/src/components/FullsizePicture.tsx @@ -10,7 +10,7 @@ type Props = { type StyledPictureProps = { center?: boolean; - cover?: string; + cover?: "width" | "height" | "both"; } & PictureProps; const Wrapper: React.FunctionComponent<{ className?: string }> = cxs("div")({