Skip to content

Commit a660907

Browse files
committed
fix typing
1 parent 1eacfcb commit a660907

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/sim/lib/billing/plans.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type Stripe from 'stripe'
12
import {
23
getFreeTierLimit,
34
getProTierLimit,
@@ -82,7 +83,7 @@ export interface StripePlanResolution {
8283
* Used to get the authoritative plan from Stripe rather than relying on DB state.
8384
*/
8485
export function resolvePlanFromStripeSubscription(
85-
stripeSubscription: { items?: { data?: Array<{ price?: { id?: string } }> } } | null | undefined
86+
stripeSubscription: Stripe.Subscription
8687
): StripePlanResolution {
8788
const priceId = stripeSubscription?.items?.data?.[0]?.price?.id
8889
const plan = priceId ? getPlanByPriceId(priceId) : undefined

0 commit comments

Comments
 (0)