Small typing tweak

This commit is contained in:
Aria Minaei 2021-08-18 20:01:20 +02:00
parent 72d40bf204
commit c20b065bae

View file

@ -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 | DOMRect>(null)