The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix types
Steven Teyf3344b38e5a3
diff --git a/packages/ui/src/hooks/use-router-stuff.ts b/packages/ui/src/hooks/use-router-stuff.tsindex d12a13c840..e9b3f50099 100644--- a/packages/ui/src/hooks/use-router-stuff.ts+++ b/packages/ui/src/hooks/use-router-stuff.ts@@ -1,4 +1,10 @@-import { usePathname, useRouter, useSearchParams } from "next/navigation";+import { AppRouterInstance } from "next/dist/shared/lib/app-router-context.shared-runtime";+import {+ ReadonlyURLSearchParams,+ usePathname,+ useRouter,+ useSearchParams,+} from "next/navigation";export function useRouterStuff() {const pathname = usePathname();@@ -64,9 +70,9 @@ export function useRouterStuff() {};return {- pathname,- router,- searchParams,+ pathname: pathname as string,+ router: router as AppRouterInstance,+ searchParams: searchParams as ReadonlyURLSearchParams,searchParamsObj,queryParams,getQueryString,