📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Fix types
Blue Mouse966d79c372e3
diff --git a/app/hooks/useSize.ts b/app/hooks/useSize.tsindex 9645f777b..aa41cb58c 100644--- a/app/hooks/useSize.ts+++ b/app/hooks/useSize.ts@@ -1,8 +1,9 @@/* eslint-disable consistent-return */+import type { MutableRefObject } from 'react'import { useEffect, useRef, useState } from 'react'import _get from 'lodash/get'-export default () => {+const useSize = (): [MutableRefObject<null>, { width: number; height: number }] => {const [size, setSize] = useState({width: 0,height: 0,@@ -28,3 +29,5 @@ export default () => {return [ref, size]}++export default useSize