Small typing tweak
This commit is contained in:
parent
72d40bf204
commit
c20b065bae
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
import {useLayoutEffect, useState} from 'react'
|
import {useLayoutEffect, useState} from 'react'
|
||||||
|
|
||||||
export default function useBoundingClientRect(
|
export default function useBoundingClientRect(
|
||||||
node: HTMLElement | null,
|
node: Element | null,
|
||||||
): null | DOMRect {
|
): null | DOMRect {
|
||||||
const [bounds, set] = useState<null | DOMRect>(null)
|
const [bounds, set] = useState<null | DOMRect>(null)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue