Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

chore: replace any ua type with returntype

Maximilian Kaske0ed2e3720b40
diff --git a/lib/stats.ts b/lib/stats.ts
index 82245a0054..44c53c7f82 100644
--- a/lib/stats.ts
+++ b/lib/stats.ts
@@ -1,9 +1,9 @@
-import { NextRequest } from "next/server";
+import { NextRequest, userAgent } from "next/server";
import { COUNTRIES } from "@/lib/constants";
export interface RawStatsProps {
geo: NextRequest["geo"];
- ua: any;
+ ua: ReturnType<typeof userAgent>;
referer: string;
timestamp: number;
}