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.

Fix types

Tim Wilson54cf7dbe4c71
diff --git a/packages/utils/src/constants/pricing.tsx b/packages/utils/src/constants/pricing.tsx
index bde3fe75ce..0458e76741 100644
--- a/packages/utils/src/constants/pricing.tsx
+++ b/packages/utils/src/constants/pricing.tsx
@@ -1,3 +1,13 @@
+type Feature = {
+ id?: string;
+ text: string;
+ footnote?: {
+ title: string;
+ cta: string;
+ href: string;
+ };
+};
+
const BUSINESS_PLAN_MODIFIER = ({
name = "Business",
monthly = 59,
@@ -102,7 +112,7 @@ const BUSINESS_PLAN_MODIFIER = ({
href: "https://d.to/webhooks",
},
},
- ],
+ ] as Feature[],
});
export const PLANS = [
@@ -162,7 +172,7 @@ export const PLANS = [
href: "https://dub.co/docs/api-reference/introduction",
},
},
- ],
+ ] as Feature[],
},
{
name: "Pro",
@@ -242,7 +252,7 @@ export const PLANS = [
href: "https://dub.co/help/article/free-dot-link-domain",
},
},
- ],
+ ] as Feature[],
},
BUSINESS_PLAN_MODIFIER({
name: "Business",
@@ -346,7 +356,7 @@ export const PLANS = [
{ id: "sla", text: "Custom SLA" },
{ id: "logs", text: "Audit logs" },
{ id: "success", text: "Dedicated success manager" },
- ],
+ ] as Feature[],
},
];