From 40fc9efb65cfe797977774fc5c5c7e8391760585 Mon Sep 17 00:00:00 2001 From: Gabriel Souza Date: Thu, 14 May 2020 19:43:16 -0300 Subject: [PATCH] Update partialVisibility type According to docs, this prop can have also this options --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index dacbea3..1d7c6e6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -11,7 +11,7 @@ declare module "react-visibility-sensor" { interface Props { onChange?: (isVisible: boolean) => void; active?: boolean; - partialVisibility?: boolean; + partialVisibility?: 'top' | 'bottom' | 'right' | 'left' | boolean; offset?: Shape; minTopValue?: number; intervalCheck?: boolean;