From a660907c226172cc0fab031b9005ef5cce0fb5c1 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Fri, 30 Jan 2026 16:35:44 -0800 Subject: [PATCH] fix typing --- apps/sim/lib/billing/plans.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/sim/lib/billing/plans.ts b/apps/sim/lib/billing/plans.ts index e176a0950..4a767e41c 100644 --- a/apps/sim/lib/billing/plans.ts +++ b/apps/sim/lib/billing/plans.ts @@ -1,3 +1,4 @@ +import type Stripe from 'stripe' import { getFreeTierLimit, getProTierLimit, @@ -82,7 +83,7 @@ export interface StripePlanResolution { * Used to get the authoritative plan from Stripe rather than relying on DB state. */ export function resolvePlanFromStripeSubscription( - stripeSubscription: { items?: { data?: Array<{ price?: { id?: string } }> } } | null | undefined + stripeSubscription: Stripe.Subscription ): StripePlanResolution { const priceId = stripeSubscription?.items?.data?.[0]?.price?.id const plan = priceId ? getPlanByPriceId(priceId) : undefined