Skip to content

Commit 6b22037

Browse files
committed
chore: updated ts tags for getBoundingClientRect
1 parent 3a99ee4 commit 6b22037

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/hooks/useBoundingClientRect.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ export function useBoundingClientRect(
5555
return;
5656
}
5757

58-
// @ts-expect-error 👉 https://github.com/facebook/react/commit/53b1f69ba
5958
if (
59+
// @ts-expect-error 👉 https://github.com/facebook/react/commit/53b1f69ba
6060
ref.current.unstable_getBoundingClientRect !== null &&
61+
// @ts-expect-error 👉 https://github.com/facebook/react/commit/53b1f69ba
6162
typeof ref.current.unstable_getBoundingClientRect === 'function'
6263
) {
6364
// @ts-expect-error https://github.com/facebook/react/commit/53b1f69ba

0 commit comments

Comments
 (0)