From c20b065bae6d95b42d70ef01a94f81d8b14acc7c Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Wed, 18 Aug 2021 20:01:20 +0200 Subject: [PATCH] Small typing tweak --- theatre/studio/src/uiComponents/useBoundingClientRect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theatre/studio/src/uiComponents/useBoundingClientRect.ts b/theatre/studio/src/uiComponents/useBoundingClientRect.ts index 26de025..b0217f2 100644 --- a/theatre/studio/src/uiComponents/useBoundingClientRect.ts +++ b/theatre/studio/src/uiComponents/useBoundingClientRect.ts @@ -1,7 +1,7 @@ import {useLayoutEffect, useState} from 'react' export default function useBoundingClientRect( - node: HTMLElement | null, + node: Element | null, ): null | DOMRect { const [bounds, set] = useState(null)