From 6b8dc225e91d65fbabc1d79c69286aa35683bb35 Mon Sep 17 00:00:00 2001 From: Jordi Enric Date: Sun, 27 Oct 2024 12:29:57 +0100 Subject: [PATCH] wip --- apps/web/src/lib/pricing.constants.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/apps/web/src/lib/pricing.constants.ts b/apps/web/src/lib/pricing.constants.ts index 5513163..55cb3cb 100644 --- a/apps/web/src/lib/pricing.constants.ts +++ b/apps/web/src/lib/pricing.constants.ts @@ -1,18 +1,20 @@ import { z } from "zod"; export const PricingPlanTier = z.enum(["hobby", "pro"]); -export type PricingPlanTier = z.infer; -export const isPricingPlanTier = (value: string): value is PricingPlanTier => - PricingPlanTier.safeParse(value).success; +export type PricingPlanTierType = z.infer; +export const isPricingPlanTier = ( + value: string +): value is PricingPlanTierType => PricingPlanTier.safeParse(value).success; export const PricingPlanInterval = z.enum(["month", "year"]); -export type PricingPlanInterval = z.infer; +export type PricingPlanIntervalType = z.infer; export const isPricingPlanInterval = ( value: string -): value is PricingPlanInterval => PricingPlanInterval.safeParse(value).success; +): value is PricingPlanIntervalType => + PricingPlanInterval.safeParse(value).success; export type PricingPlan = { - id: PricingPlanTier; + id: PricingPlanTierType; title: string; description: string; monthlyPrice: number;